Variables
Const AAVE_LIST
AAVE_LIST: "https://tokenlist.aave.eth.link" = "https://tokenlist.aave.eth.link"
Const ACTION_ACCRUE
ACTION_ACCRUE: 8 = 8
Const ACTION_ADD_ASSET
ACTION_ADD_ASSET: 1 = 1
Const ACTION_ADD_COLLATERAL
ACTION_ADD_COLLATERAL: 10 = 10
Const ACTION_BENTO_DEPOSIT
ACTION_BENTO_DEPOSIT: 20 = 20
Const ACTION_BENTO_SETAPPROVAL
ACTION_BENTO_SETAPPROVAL: 24 = 24
Const ACTION_BENTO_TRANSFER
ACTION_BENTO_TRANSFER: 22 = 22
Const ACTION_BENTO_TRANSFER_MULTIPLE
ACTION_BENTO_TRANSFER_MULTIPLE: 23 = 23
Const ACTION_BENTO_WITHDRAW
ACTION_BENTO_WITHDRAW: 21 = 21
Const ACTION_BORROW
ACTION_BORROW: 5 = 5
Const ACTION_CALL
ACTION_CALL: 30 = 30
Const ACTION_GET_REPAY_PART
ACTION_GET_REPAY_PART: 7 = 7
Const ACTION_GET_REPAY_SHARE
ACTION_GET_REPAY_SHARE: 6 = 6
Const ACTION_REMOVE_ASSET
ACTION_REMOVE_ASSET: 3 = 3
Const ACTION_REMOVE_COLLATERAL
ACTION_REMOVE_COLLATERAL: 4 = 4
Const ACTION_REPAY
ACTION_REPAY: 2 = 2
Const ACTION_UPDATE_EXCHANGE_RATE
ACTION_UPDATE_EXCHANGE_RATE: 11 = 11
Const ADDRESS_REGEX
ADDRESS_REGEX: RegExp = /^0x[a-fA-F0-9]{40}$/
Const ALLOWED_PRICE_IMPACT_HIGH
ALLOWED_PRICE_IMPACT_HIGH: Percent = new Percent(JSBI.BigInt(500), BIPS_BASE)
Const ALLOWED_PRICE_IMPACT_LOW
ALLOWED_PRICE_IMPACT_LOW: Percent = new Percent(JSBI.BigInt(100), BIPS_BASE)
Const ALLOWED_PRICE_IMPACT_MEDIUM
ALLOWED_PRICE_IMPACT_MEDIUM: Percent = new Percent(JSBI.BigInt(300), BIPS_BASE)
Const ALPHA
ALPHA: Token = new Token(ChainId.MAINNET, '0xa1faa113cbE53436Df28FF0aEe54275c13B40975', 18, 'ALPHA', 'AlphaToken')
Const AMPL
AMPL: Token = new Token(ChainId.MAINNET, '0xD46bA6D942050d489DBd938a2C909A5d5039A161', 9, 'AMPL', 'Ampleforth')
Const ARGENT_WALLET_DETECTOR_MAINNET_ADDRESS
ARGENT_WALLET_DETECTOR_MAINNET_ADDRESS: "0xeca4B0bDBf7c55E9b7925919d03CbF8Dc82537E8" = "0xeca4B0bDBf7c55E9b7925919d03CbF8Dc82537E8"
Const AVERAGE_BLOCK_TIME_IN_SECS
AVERAGE_BLOCK_TIME_IN_SECS: 14 = 14
Const AXSUSHI
AXSUSHI: Token = new Token(ChainId.MAINNET,'0xf256cc7847e919fac9b808cc216cac87ccf2f47a',18,'aXSUSHI','Aave interest bearing XSUSHI')
Const AddressText
AddressText: any = styled.div`font-size: 12px;${({ theme }) => theme.mediaWidth.upToSmall`font-size: 10px;`}`
Const AdvancedDetailsFooter
AdvancedDetailsFooter: any = styled.div<{ show: boolean }>`width: 100%;border-bottom-left-radius: 20px;border-bottom-right-radius: 20px;background-color: #202231;padding-top: calc(16px + 2rem);padding-bottom: 16px;margin-top: -2rem;max-width: 662px;padding-right: 10px;padding-left: 10px;transform: ${({ show }) => (show ? 'translateY(0%)' : 'translateY(-100%)')};transition: transform 300ms ease-in-out;`
Const AnimatedDialogContent
AnimatedDialogContent: ForwardRefExoticComponent<Merge<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | "results" | "onError" | "id" | "slot" | "style" | "title" | "className" | "children" | "onClick" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & { ref?: Exclude<R, string> | undefined }, DialogContentProps & { as?: E }>> = animated(DialogContent)
Const AnimatedDialogOverlay
AnimatedDialogOverlay: ForwardRefExoticComponent<Merge<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | "results" | "onError" | "id" | "slot" | "style" | "title" | "className" | "children" | "onClick" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & { ref?: Exclude<R, string> | undefined }, DialogOverlayProps & { as?: E }>> = animated(DialogOverlay)
Const AnimatedFader
AnimatedFader: ForwardRefExoticComponent<any> = animated(({ children, ...rest }) => (<div className="h-[3px] bg-dark-800 w-full"><div className="h-[3px] bg-gradient-to-r from-blue to-pink " {...rest}>{children}</div></div>))
Const Arbitrum
Arbitrum: "https://raw.githubusercontent.com/sushiswap/icons/master/network/arbitrum.jpg" = "https://raw.githubusercontent.com/sushiswap/icons/master/network/arbitrum.jpg"
Const Arrow
Arrow: any = styled.div`width: 8px;height: 8px;z-index: 9998;::before {position: absolute;width: 8px;height: 8px;z-index: 9998;content: '';// border: 1px solid ${({ theme }) => theme.bg3};transform: rotate(45deg);// background: ${({ theme }) => theme.bg2};}&.arrow-top {bottom: -5px;::before {border-top: none;border-left: none;}}&.arrow-bottom {top: -5px;::before {border-bottom: none;border-right: none;}}&.arrow-left {right: -5px;::before {border-bottom: none;border-left: none;}}&.arrow-right {left: -5px;::before {border-right: none;border-top: none;}}`
Const ArrowWrapper
ArrowWrapper: any = styled.div<{ clickable: boolean }>`padding: 2px;${({ clickable }) =>clickable? css`:hover {cursor: pointer;opacity: 0.8;}`: null}`
Const AutoRow
AutoRow: any = styled(Row)<{ gap?: string; justify?: string }>`flex-wrap: wrap;margin: ${({ gap }) => gap && `-${gap}`};justify-content: ${({ justify }) => justify && justify};& > * {margin: ${({ gap }) => gap} !important;}`
Const Avalanche
Avalanche: "https://raw.githubusercontent.com/sushiswap/icons/master/network/avalanche.jpg" = "https://raw.githubusercontent.com/sushiswap/icons/master/network/avalanche.jpg"
Const AvalancheLogo
AvalancheLogo: "https://raw.githubusercontent.com/sushiswap/icons/master/token/avax.jpg" = "https://raw.githubusercontent.com/sushiswap/icons/master/token/avax.jpg"
Const BAB
BAB: Token = new Token(ChainId.MAINNET, '0xC36824905dfF2eAAEE7EcC09fCC63abc0af5Abc5', 18, 'BAB', 'BAB')
Const BAC
BAC: Token = new Token(ChainId.MAINNET, '0x3449FC1Cd036255BA1EB19d65fF4BA2b8903A69a', 18, 'BAC', 'Basis Cash')
Const BAD_SRCS
BAD_SRCS: {}
Type declaration
-
[tokenAddress: string]: true
Const BA_LIST
BA_LIST: "https://raw.githubusercontent.com/The-Blockchain-Association/sec-notice-list/master/ba-sec-list.json" = "https://raw.githubusercontent.com/The-Blockchain-Association/sec-notice-list/master/ba-sec-list.json"
Const BETTER_TRADE_LESS_HOPS_THRESHOLD
BETTER_TRADE_LESS_HOPS_THRESHOLD: Percent = new Percent(JSBI.BigInt(50), JSBI.BigInt(10000))
Const BIG_INT_SECONDS_IN_WEEK
BIG_INT_SECONDS_IN_WEEK: JSBI = JSBI.BigInt(60 * 60 * 24 * 7)
Const BIG_INT_ZERO
BIG_INT_ZERO: JSBI = JSBI.BigInt(0)
Const BIPS_BASE
BIPS_BASE: JSBI = JSBI.BigInt(10000)
Const BLACKLISTED_ORACLES
BLACKLISTED_ORACLES: string[] = ['0x8f2CC3376078568a04eBC600ae5F0a036DBfd812']
Const BLOCKED_ADDRESSES
BLOCKED_ADDRESSES: string[] = ['0x7F367cC41522cE07553e823bf3be79A889DEbe1B','0xd882cFc20F52f2599D84b8e8D58C7FB62cfE344b','0x901bb9583b24D97e995513C6778dc6888AB6870e','0xA7e5d5A720f06526557c513402f2e6B5fA20b008','0xd882cfc20f52f2599d84b8e8d58c7fb62cfe344b','0x901bb9583b24d97e995513c6778dc6888ab6870e','0xa7e5d5a720f06526557c513402f2e6b5fa20b00','0x8576acc5c05d6ce88f4e49bf65bdf0c62f91353c','0x1da5821544e25c636c1417ba96ade4cf6d2f9b5a','0x7Db418b5D567A4e0E8c59Ad71BE1FcE48f3E6107','0x72a5843cc08275C8171E582972Aa4fDa8C397B2A','0x7F19720A857F834887FC9A7bC0a0fBe7Fc7f8102','0x9f4cda013e354b8fc285bf4b9a60460cee7f7ea9','0x2f389ce8bd8ff92de3402ffce4691d17fc4f6535','0x19aa5fe80d33a56d56c78e82ea5e50e5d80b4dff','0xe7aa314c77f4233c18c6cc84384a9247c0cf367b','0x308ed4b7b49797e1a98d3818bff6fe5385410370',]
Const BLOCKED_PRICE_IMPACT_NON_EXPERT
BLOCKED_PRICE_IMPACT_NON_EXPERT: Percent = new Percent(JSBI.BigInt(1500), BIPS_BASE)
Const BLOCKS_IN_A_YEAR
BLOCKS_IN_A_YEAR: number = SECONDS_PER_YEAR / 13.25
Const BREAK_LINE
BREAK_LINE: "BREAK" = "BREAK"
Const BSC_CHAINLINK_TOKENS
BSC_CHAINLINK_TOKENS: { address: string; decimals: number; name: string; symbol: string }[] = [{symbol: 'ADA',name: 'Cardano Token',address: '0x3EE2200Efb3400fAbB9AacF31297cBdD1d435D47',decimals: 18,},{symbol: 'BUSD',name: 'BUSD Token',address: '0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56',decimals: 18,},{symbol: 'BAND',name: 'Band Protocol Token',address: '0xAD6cAEb32CD2c308980a548bD0Bc5AA4306c6c18',decimals: 18,},{symbol: 'BCH',name: 'Bitcoin Cash Token',address: '0x8fF795a6F4D97E7887C79beA79aba5cc76444aDf',decimals: 18,},{symbol: 'BTCB',name: 'BTCB Token',address: '0x7130d2A12B9BCbFAe4f2634d864A1Ee1Ce3Ead9c',decimals: 18,},{symbol: 'BUSD-T',name: 'BUSD-T',address: '0x55d398326f99059fF775485246999027B3197955',decimals: 18,},{symbol: 'CREAM',name: 'Cream',address: '0xd4CB328A82bDf5f03eB737f37Fa6B370aef3e888',decimals: 18,},{symbol: 'DAI',name: 'Dai Token',address: '0x1AF3F329e8BE154074D8769D1FFa4eE058B1DBc3',decimals: 18,},{symbol: 'DOT',name: 'Polkadot Token',address: '0x7083609fCE4d1d8Dc0C979AAb8c869Ea2C873402',decimals: 18,},{symbol: 'EOS',name: 'EOS Token',address: '0x56b6fB708fC5732DEC1Afc8D8556423A2EDcCbD6',decimals: 18,},{symbol: 'LINK',name: 'ChainLink Token',address: '0xF8A0BF9cF54Bb92F17374d9e9A321E6a111a51bD',decimals: 18,},{symbol: 'LTC',name: 'Litecoin Token',address: '0x4338665CBB7B2485A8855A139b75D5e34AB0DB94',decimals: 18,},{symbol: 'SXP',name: 'Swipe',address: '0x47bead2563dcbf3bf2c9407fea4dc236faba485a',decimals: 18,},{symbol: 'UNI',name: 'Uniswap',address: '0xBf5140A22578168FD562DCcF235E5D43A02ce9B1',decimals: 18,},{symbol: 'USDC',name: 'USD Coin',address: '0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d',decimals: 18,},{symbol: 'XRP',name: 'XRP Token',address: '0x1D2F0da169ceB9fC7B3144628dB156f3F6c60dBE',decimals: 18,},{symbol: 'XTZ',name: 'Tezos Token',address: '0x16939ef78684453bfDFb47825F8a5F714f12623a',decimals: 18,},{symbol: 'XVS',name: 'Venus',address: '0xcF6BB5389c92Bdda8a3747Ddb454cB7a64626C63',decimals: 18,},{symbol: 'YFI',name: 'yearn.finance',address: '0x88f1A5ae2A3BF98AEAF342D26B30a79438c9142e',decimals: 18,},{symbol: 'WBNB',name: 'Wrapped BNB',address: '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c',decimals: 18,},{symbol: 'WETH',name: 'Wrapped Ether',address: '0x2170Ed0880ac9A755fd29B2688956BD959F933F8',decimals: 18,},{symbol: 'COIN',name: 'coin_artist',address: '0x87b008E57F640D94Ee44Fd893F0323AF933F9195',decimals: 18,},{symbol: 'RAMP',name: 'RAMP DEFI',address: '0x8519EA49c997f50cefFa444d240fB655e89248Aa',decimals: 18,},{symbol: 'VAI',name: 'VAI Stablecoin',address: '0x4BD17003473389A42DAF6a0a729f6Fdb328BbBd7',decimals: 18,},{symbol: 'ONT',name: 'Binance-Peg Ontology Token',address: '0xFd7B3A77848f1C2D67E05E54d78d174a0C850335',decimals: 18,},{symbol: 'FIL',name: 'Binance-Peg Filecoin',address: '0x0D8Ce2A99Bb6e3B7Db580eD848240e4a0F9aE153',decimals: 18,},{symbol: 'DOGE',name: 'Binance-Peg Dogecoin',address: '0xba2ae424d960c26247dd6c32edc70b295c744c43',decimals: 8,},{symbol: 'ICE',name: 'IceToken',address: '0xf16e81dce15B08F326220742020379B855B87DF9',decimals: 18,},{symbol: 'EOS',name: 'Binance-Peg EOS Token',address: '0x56b6fB708fC5732DEC1Afc8D8556423A2EDcCbD6',decimals: 18,},{symbol: 'XTZ',name: 'Binance-Peg Tezos Token',address: '0x16939ef78684453bfDFb47825F8a5F714f12623a',decimals: 18,},{symbol: 'CAKE',name: 'PancakeSwap Token',address: '0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82',decimals: 18,},]
Const BYTES32_REGEX
BYTES32_REGEX: RegExp = /^0x[a-fA-F0-9]{64}$/
BigNumber
BigNumber: BigNumber
Const BinanceCoinLogo
BinanceCoinLogo: "https://raw.githubusercontent.com/sushiswap/icons/master/token/bnb.jpg" = "https://raw.githubusercontent.com/sushiswap/icons/master/token/bnb.jpg"
Const Blurb
Blurb: any = styled.div`// ${({ theme }) => theme.flexRowNoWrap}align-items: center;justify-content: center;flex-wrap: wrap;margin-top: 2rem;// ${({ theme }) => theme.mediaWidth.upToMedium`margin: 1rem;font-size: 12px;`};`
Const BottomGrouping
BottomGrouping: any = styled.div`margin-top: 1rem;`
Const Bsc
Bsc: "https://raw.githubusercontent.com/sushiswap/icons/master/network/bsc.jpg" = "https://raw.githubusercontent.com/sushiswap/icons/master/network/bsc.jpg"
Const ButtonText
ButtonText: any = styled.button`outline: none;border: none;font-size: inherit;padding: 0;margin: 0;background: none;cursor: pointer;:hover {opacity: 0.7;}:focus {text-decoration: underline;}`
Const CLAIM_PROMISES
CLAIM_PROMISES: {}
Const CMC_ALL_LIST
CMC_ALL_LIST: "https://defi.cmc.eth" = "https://defi.cmc.eth"
Const CMC_STABLECOIN
CMC_STABLECOIN: "https://stablecoin.cmc.eth" = "https://stablecoin.cmc.eth"
Const COINGECKO_LIST
COINGECKO_LIST: "https://tokens.coingecko.com/uniswap/all.json" = "https://tokens.coingecko.com/uniswap/all.json"
Const COMPOUND_LIST
COMPOUND_LIST: "https://raw.githubusercontent.com/compound-finance/token-list/master/compound.tokenlist.json" = "https://raw.githubusercontent.com/compound-finance/token-list/master/compound.tokenlist.json"
Const CONSERVATIVE_BLOCK_GAS_LIMIT
CONSERVATIVE_BLOCK_GAS_LIMIT: 10000000 = 10000000
Const CREAM
CREAM: Token = new Token(ChainId.MAINNET, '0x2ba592F78dB6436527729929AAf6c908497cB200', 18, 'CREAM', 'Cream')
Const CRV
CRV: Token = new Token(ChainId.MAINNET, '0xD533a949740bb3306d119CC777fa900bA034cd52', 18, 'CRV', 'Curve')
Const CRXSUSHI
CRXSUSHI: Token = new Token(ChainId.MAINNET,'0x228619cca194fbe3ebeb2f835ec1ea5080dafbb2',8,'crXSUSHI','Cream SushiBar')
Const CURRENCY_AMOUNT_MIN
CURRENCY_AMOUNT_MIN: Fraction = new Fraction(JSBI.BigInt(1), JSBI.BigInt(1000000))
Const CVXCRV
CVXCRV: Token = new Token(ChainId.MAINNET, '0x62B9c7356A2Dc64a1969e19C23e4f579F9810Aa7', 18, 'cvxCRV', 'cvxCRV')
Const Celo
Celo: "https://raw.githubusercontent.com/sushiswap/icons/master/network/celo.jpg" = "https://raw.githubusercontent.com/sushiswap/icons/master/network/celo.jpg"
Const CeloLogo
CeloLogo: "https://raw.githubusercontent.com/sushiswap/icons/master/token/celo.jpg" = "https://raw.githubusercontent.com/sushiswap/icons/master/token/celo.jpg"
Const CheckIcon
CheckIcon: any = styled(CheckCircle)`height: 16px;width: 16px;margin-right: 6px;// stroke: ${({ theme }) => theme.green1};`
Const Circle
Circle: any = styled.div<{ confirmed?: boolean; disabled?: boolean }>`min-width: 20px;min-height: 20px;background-color: ${({ confirmed, disabled }) =>disabled ? '#202231' : confirmed ? 'rgb(124, 255, 107)' : '#FA52A0'};border-radius: 50%;color: #bfbfbf;display: flex;align-items: center;justify-content: center;line-height: 8px;font-size: 12px;`
Const CircleRow
CircleRow: any = styled.div`width: calc(100% - 20px);display: flex;align-items: center;`
Const ClickableText
ClickableText: any = styled(Typography)`:hover {cursor: pointer;}`
Const CloseIcon
CloseIcon: any = styled.div`position: absolute;right: 1rem;top: 14px;&:hover {cursor: pointer;opacity: 0.6;}`
Const ConfirmOrLoadingWrapper
ConfirmOrLoadingWrapper: any = styled.div`width: 100%;padding: 24px;`
Const ConfirmedIcon
ConfirmedIcon: any = styled(ColumnCenter)`padding: 60px 0;`
Const Connector
Connector: any = styled.div<{ prevConfirmed?: boolean; disabled?: boolean }>`width: 100%;height: 2px;background-color: ;background: linear-gradient(90deg,${({ prevConfirmed, disabled }) =>disabled ? '#0D0415' : transparentize(0.5, prevConfirmed ? 'rgb(124, 255, 107)' : '#FA52A0')}0%,${({ prevConfirmed, disabled }) => (disabled ? '#202231' : prevConfirmed ? '#FA52A0' : '#202231')} 80%);opacity: 0.6;`
Const ContentWrapper
ContentWrapper: any = styled.div`/*background-color: ${({ theme }) => theme.bg2}; *//*padding: 2rem;*/border-bottom-left-radius: 20px;border-bottom-right-radius: 20px;// ${({ theme }) => theme.mediaWidth.upToMedium`padding: 1rem`};`
Const CustomLightSpinner
CustomLightSpinner: any = styled(Spinner)<{ size: string }>`height: ${({ size }) => size};width: ${({ size }) => size};`
Const DAI
DAI: Token = new Token(ChainId.MAINNET, '0x6B175474E89094C44Da98b954EedeAC495271d0F', 18, 'DAI', 'Dai Stablecoin')
Const DAI_ADDRESS
DAI_ADDRESS: "0x6b175474e89094c44da98b954eedeac495271d0f" = "0x6b175474e89094c44da98b954eedeac495271d0f"
Const DEFAULT_ACTIVE_LIST_URLS
DEFAULT_ACTIVE_LIST_URLS: string[] = [NFTX_LIST, YEARN_LIST, GEMINI_LIST]
Const DEFAULT_ADD_V2_SLIPPAGE_TOLERANCE
DEFAULT_ADD_V2_SLIPPAGE_TOLERANCE: Percent = new Percent(50, 10_000)
Const DEFAULT_ARCHER_ETH_TIP
DEFAULT_ARCHER_ETH_TIP: JSBI = JSBI.BigInt(DEFAULT_ARCHER_GAS_ESTIMATE.mul(DEFAULT_ARCHER_GAS_PRICES[4]).toString())
Const DEFAULT_ARCHER_GAS_ESTIMATE
DEFAULT_ARCHER_GAS_ESTIMATE: BigNumber = BigNumber.from(250000)
Const DEFAULT_ARCHER_GAS_PRICES
DEFAULT_ARCHER_GAS_PRICES: BigNumber[] = [BigNumber.from(60000000000),BigNumber.from(70000000000),BigNumber.from(100000000000),BigNumber.from(140000000000),BigNumber.from(300000000000),BigNumber.from(800000000000),BigNumber.from(2000000000000),]
Const DEFAULT_BORROW_SLIPPAGE_TOLERANCE
DEFAULT_BORROW_SLIPPAGE_TOLERANCE: Percent = new Percent(50, 10_000)
Const DEFAULT_DEADLINE_FROM_NOW
DEFAULT_DEADLINE_FROM_NOW: number = 60 * 30
Const DEFAULT_GAS_REQUIRED
DEFAULT_GAS_REQUIRED: 1000000 = 1000000
Const DEFAULT_KASHI_REPAY_SLIPPAGE_TOLERANCE
DEFAULT_KASHI_REPAY_SLIPPAGE_TOLERANCE: Percent = new Percent(5, 100)
Const DEFAULT_LIST_OF_LISTS
DEFAULT_LIST_OF_LISTS: string[] = [COMPOUND_LIST,COMPOUND_LIST,AAVE_LIST,CMC_ALL_LIST,CMC_STABLECOIN,UMA_LIST,YEARN_LIST,SYNTHETIX_LIST,WRAPPED_LIST,SET_LIST,ROLL_LIST,COINGECKO_LIST,KLEROS_LIST,OPYN_LIST,NFTX_LIST,OPTIMISM_LIST,GEMINI_LIST,DHEDGE_LIST,...UNSUPPORTED_LIST_URLS /** need to load unsupported tokens as well */,]
Const DEFAULT_OPENMEV_ETH_TIP
DEFAULT_OPENMEV_ETH_TIP: JSBI = JSBI.BigInt(DEFAULT_OPENMEV_GAS_ESTIMATE.mul(DEFAULT_OPENMEV_GAS_PRICES[4]).toString())
Const DEFAULT_OPENMEV_GAS_ESTIMATE
DEFAULT_OPENMEV_GAS_ESTIMATE: BigNumber = BigNumber.from(250000)
Const DEFAULT_OPENMEV_GAS_PRICES
DEFAULT_OPENMEV_GAS_PRICES: BigNumber[] = [BigNumber.from(60000000000),BigNumber.from(70000000000),BigNumber.from(100000000000),BigNumber.from(140000000000),BigNumber.from(300000000000),BigNumber.from(800000000000),BigNumber.from(2000000000000),]
Const DEFAULT_REMOVE_LIQUIDITY_SLIPPAGE_TOLERANCE
DEFAULT_REMOVE_LIQUIDITY_SLIPPAGE_TOLERANCE: Percent = new Percent(5, 100)
Const DEFAULT_ZAP_SLIPPAGE_TOLERANCE
DEFAULT_ZAP_SLIPPAGE_TOLERANCE: Percent = new Percent(5, 100)
Const DHEDGE_LIST
DHEDGE_LIST: "https://list.dhedge.eth.link/" = "https://list.dhedge.eth.link/"
Const DOLA
DOLA: Token = new Token(ChainId.MAINNET,'0x865377367054516e17014CcdED1e7d814EDC9ce4',18,'Dola USD Stablecoin','DOLA')
Const DOUGH
DOUGH: Token = new Token(ChainId.MAINNET,'0xad32A8e6220741182940c5aBF610bDE99E737b2D',18,'DOUGH','PieDAO Dough v2')
Const DPI
DPI: Token = new Token(ChainId.MAINNET, '0x1494CA1F11D487c2bBe4543E90080AeBa4BA3C2b', 18, 'DefiPulse', 'DPI')
Const DUCK
DUCK: Token = new Token(ChainId.MAINNET, '0x92E187a03B6CD19CB6AF293ba17F2745Fd2357D5', 18, 'DUCK', 'DUCK')
Const DetailsFooter
DetailsFooter: any = styled.div<{ show: boolean }>`padding-top: calc(16px + 2rem);padding-bottom: 20px;margin-top: -2rem;width: 100%;//max-width: 400px;border-bottom-left-radius: 20px;border-bottom-right-radius: 20px;// color: ${({ theme }) => theme.text2};// background-color: ${({ theme }) => theme.advancedBG};z-index: -1;transform: ${({ show }) => (show ? 'translateY(0%)' : 'translateY(-100%)')};transition: transform 300ms ease-in-out;text-align: center;`
Const Dots
Dots: any = styled.span`&::after {display: inline-block;animation: ellipsis 1.25s infinite;content: '.';width: 1em;text-align: left;}@keyframes ellipsis {0% {content: '.';}33% {content: '..';}66% {content: '...';}}`
Const EIP2612_TYPE
EIP2612_TYPE: { name: string; type: string }[] = [{ name: 'owner', type: 'address' },{ name: 'spender', type: 'address' },{ name: 'value', type: 'uint256' },{ name: 'nonce', type: 'uint256' },{ name: 'deadline', type: 'uint256' },]
Const EIP712_DOMAIN_TYPE
EIP712_DOMAIN_TYPE: { name: string; type: string }[] = [{ name: 'name', type: 'string' },{ name: 'version', type: 'string' },{ name: 'chainId', type: 'uint256' },{ name: 'verifyingContract', type: 'address' },]
Const EIP712_DOMAIN_TYPE_NO_VERSION
EIP712_DOMAIN_TYPE_NO_VERSION: { name: string; type: string }[] = [{ name: 'name', type: 'string' },{ name: 'chainId', type: 'uint256' },{ name: 'verifyingContract', type: 'address' },]
Const ENS_NAME_REGEX
ENS_NAME_REGEX: RegExp = /^[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&/=]*)?$/
Const ERC20_BYTES32_INTERFACE
ERC20_BYTES32_INTERFACE: Interface = new Interface(ERC20_BYTES32_ABI)
Const ERC20_INTERFACE
ERC20_INTERFACE: Interface = new Interface([{constant: false,inputs: [{ name: '_spender', type: 'address' },{ name: '_value', type: 'uint256' },],name: 'approve',outputs: [{ name: '', type: 'bool' }],payable: false,stateMutability: 'nonpayable',type: 'function',},])
Const ETH2X_FLI
ETH2X_FLI: Token = new Token(ChainId.MAINNET,'0xAa6E8127831c9DE45ae56bB1b0d4D4Da6e5665BD',18,'ETH2x-FLI','ETH 2x Flexible Leverage Index')
Const ErrorButton
ErrorButton: any = styled.div`border-radius: 8px;font-size: 12px;// color: ${({ theme }) => theme.text1};// background-color: ${({ theme }) => theme.bg4};margin-left: 1rem;padding: 0.5rem;font-weight: 600;user-select: none;&:hover {cursor: pointer;// background-color: ${({ theme }) => darken(0.1, theme.text4)};}`
Const ErrorGroup
ErrorGroup: any = styled.div`// ${({ theme }) => theme.flexRowNoWrap};align-items: center;justify-content: flex-start;`
Const ErrorText
ErrorText: any = styled(Typography)<{ severity?: 0 | 1 | 2 | 3 | 4 }>`color: ${({ theme, severity }) =>severity === 3 || severity === 4? theme.red1: severity === 2? theme.yellow2: severity === 1? theme.text3: theme.green1};`
Const EthereumLogo
EthereumLogo: "https://raw.githubusercontent.com/sushiswap/icons/master/token/eth.jpg" = "https://raw.githubusercontent.com/sushiswap/icons/master/token/eth.jpg"
Const FACTOR_PRECISION
FACTOR_PRECISION: BigNumber = BigNumber.from('1000000000000000000')
Const FEI
FEI: Token = new Token(ChainId.MAINNET, '0x956F47F50A910163D8BF957Cf5846D573E7f87CA', 18, 'FEI', 'Fei USD')
Const FIVE_BIPS_FEE
FIVE_BIPS_FEE: Percent = new Percent(JSBI.BigInt(5), JSBI.BigInt(10000))
Const FRAX
FRAX: Token = new Token(ChainId.MAINNET, '0x853d955aCEf822Db058eb8505911ED77F175b99e', 18, 'FRAX', 'FRAX')
Const FULL_UTILIZATION
FULL_UTILIZATION: BigNumber = BigNumber.from('1000000000000000000')
Const FULL_UTILIZATION_MINUS_MAX
FULL_UTILIZATION_MINUS_MAX: BigNumber = FULL_UTILIZATION.sub(MAXIMUM_TARGET_UTILIZATION)
Const FXS
FXS: Token = new Token(ChainId.MAINNET, '0x3432B6A60D23Ca0dFCa7761B7ab56459D9C964D0', 18, 'FXS', 'Frax Share')
Const FadedSpan
FadedSpan: any = styled(RowFixed)`// color: ${({ theme }) => theme.primary1};font-size: 14px;`
Const Fantom
Fantom: "https://raw.githubusercontent.com/sushiswap/icons/master/network/fantom.jpg" = "https://raw.githubusercontent.com/sushiswap/icons/master/network/fantom.jpg"
Const FantomLogo
FantomLogo: "https://raw.githubusercontent.com/sushiswap/icons/master/token/ftm.jpg" = "https://raw.githubusercontent.com/sushiswap/icons/master/token/ftm.jpg"
Const FilterWrapper
FilterWrapper: any = styled(RowFixed)`padding: 8px;// background-color: ${({ theme }) => theme.bg2};// color: ${({ theme }) => theme.text1};border-radius: 8px;user-select: none;& > * {user-select: none;}:hover {cursor: pointer;}`
Const FixedContentRow
FixedContentRow: any = styled.div`padding: 4px 20px;height: 56px;display: grid;grid-gap: 16px;align-items: center;`
Const Fuse
Fuse: "https://raw.githubusercontent.com/sushiswap/icons/master/token/fuse.jpg" = "https://raw.githubusercontent.com/sushiswap/icons/master/token/fuse.jpg"
Const FuseLogo
FuseLogo: "https://raw.githubusercontent.com/sushiswap/icons/master/token/fuse.jpg" = "https://raw.githubusercontent.com/sushiswap/icons/master/token/fuse.jpg"
Const GEMINI_LIST
GEMINI_LIST: "https://www.gemini.com/uniswap/manifest.json" = "https://www.gemini.com/uniswap/manifest.json"
Const GnosisManagerNoSSR
GnosisManagerNoSSR: ComponentType<{}> = dynamic(() => import('./GnosisManager'), {ssr: false,})
Const Goerli
Goerli: "https://raw.githubusercontent.com/sushiswap/icons/master/network/goerli.jpg" = "https://raw.githubusercontent.com/sushiswap/icons/master/network/goerli.jpg"
Const Grouping
Grouping: any = styled(RowBetween)`width: 50%;`
Const HBTC
HBTC: Token = new Token(ChainId.MAINNET, '0x0316EB71485b0Ab14103307bf65a021042c6d380', 18, 'HBTC', 'Huobi BTC')
Const HECO_CHAINLINK_TOKENS
HECO_CHAINLINK_TOKENS: { address: string; decimals: number; name: string; symbol: string }[] = [{symbol: 'AAVE',name: 'AAVE Token',address: '0x202b4936fE1a82A4965220860aE46d7d3939Bb25',decimals: 18,},{symbol: 'ETH',name: 'Ethereum',address: '0x64FF637fB478863B7468bc97D30a5bF3A428a1fD',decimals: 18,},{symbol: 'HBCH',name: 'HBCH Token',address: '0xeF3CEBD77E0C52cb6f60875d9306397B5Caca375',decimals: 18,},{symbol: 'HBTC',name: 'HBTC Token',address: '0x66a79D23E58475D2738179Ca52cd0b41d73f0BEa',decimals: 18,},{symbol: 'HDOT',name: 'HDOT Token',address: '0xA2c49cEe16a5E5bDEFDe931107dc1fae9f7773E3',decimals: 18,},{symbol: 'HT',name: 'Huobi Token',address: '0x5545153CCFcA01fbd7Dd11C0b23ba694D9509A6F',decimals: 18,},{symbol: 'HUSD',name: 'HUSD Token',address: '0x0298c2b32eaE4da002a15f36fdf7615BEa3DA047',decimals: 18,},{symbol: 'HLTC',name: 'HLTC Token',address: '0xecb56cf772B5c9A6907FB7d32387Da2fCbfB63b4',decimals: 18,},{symbol: 'MDX',name: 'MDX Token',address: '0x25D2e80cB6B86881Fd7e07dd263Fb79f4AbE033c',decimals: 18,},{symbol: 'SNX',name: 'SNX Token',address: '0x777850281719d5a96C29812ab72f822E0e09F3Da',decimals: 18,},{symbol: 'UNI',name: 'UNI Token',address: '0x22C54cE8321A4015740eE1109D9cBc25815C46E6',decimals: 18,},{symbol: 'USDTHECO',name: 'USDTHECO Token',address: '0xa71EdC38d189767582C38A3145b5873052c3e47a',decimals: 18,},]
Const Harmony
Harmony: "https://raw.githubusercontent.com/sushiswap/icons/master/network/harmonyone.jpg" = "https://raw.githubusercontent.com/sushiswap/icons/master/network/harmonyone.jpg"
Const HarmonyLogo
HarmonyLogo: "https://raw.githubusercontent.com/sushiswap/icons/master/token/one.jpg" = "https://raw.githubusercontent.com/sushiswap/icons/master/token/one.jpg"
Const HeaderRow
HeaderRow: any = styled.div`// ${({ theme }) => theme.flexRowNoWrap};padding: 1rem 1rem;font-weight: 500;// color: ${(props) => (props.color === 'blue' ? ({ theme }) => theme.primary1 : 'inherit')};// ${({ theme }) => theme.mediaWidth.upToMedium`padding: 1rem;`};`
Const Heco
Heco: "https://raw.githubusercontent.com/sushiswap/icons/master/network/heco.jpg" = "https://raw.githubusercontent.com/sushiswap/icons/master/network/heco.jpg"
Const HecoLogo
HecoLogo: "https://raw.githubusercontent.com/sushiswap/icons/master/token/heco.jpg" = "https://raw.githubusercontent.com/sushiswap/icons/master/token/heco.jpg"
Const HoverText
HoverText: any = styled.div`:hover {cursor: pointer;}`
Const IBETH
IBETH: Token = new Token(ChainId.MAINNET,'0xeEa3311250FE4c3268F8E684f7C87A82fF183Ec1',8,'ibETHv2','Interest Bearing Ether v2')
Const IMPACT_TIERS
IMPACT_TIERS: Percent[] = [BLOCKED_PRICE_IMPACT_NON_EXPERT,ALLOWED_PRICE_IMPACT_HIGH,ALLOWED_PRICE_IMPACT_MEDIUM,ALLOWED_PRICE_IMPACT_LOW,]
Const INITIAL_ALLOWED_SLIPPAGE
INITIAL_ALLOWED_SLIPPAGE: 50 = 50
Const INPUT_CHAR_LIMIT
INPUT_CHAR_LIMIT: 18 = 18
Const INPUT_FRACTION_AFTER_FEE
INPUT_FRACTION_AFTER_FEE: Percent = ONE_HUNDRED_PERCENT.subtract(THIRTY_BIPS_FEE)
Const INTEREST_ELASTICITY
INTEREST_ELASTICITY: BigNumber = BigNumber.from('28800000000000000000000000000000000000000')
Const INV
INV: Token = new Token(ChainId.MAINNET, '0x41D5D79431A913C4aE7d69a668ecdfE5fF9DFB68', 18, 'Inverse Dao', 'INV')
Const IconWrapper
IconWrapper: any = styled.div<{ size?: number }>`display: flex;flex-flow: column nowrap;align-items: center;justify-content: center;& > * {height: ${({ size }) => (size ? size + 'px' : '32px')};width: ${({ size }) => (size ? size + 'px' : '32px')};}`
Const Input
Input: MemoExoticComponent<(Anonymous function)> = React.memo(({value,onUserInput,placeholder,className,...rest}: {value: string | numberonUserInput: (input: string) => voiderror?: booleanfontSize?: stringalign?: 'right' | 'left'} & Omit<React.HTMLProps<HTMLInputElement>, 'ref' | 'onChange' | 'as'>) => {const enforcer = (nextUserInput: string) => {if (nextUserInput === '' || inputRegex.test(escapeRegExp(nextUserInput))) {onUserInput(nextUserInput)}}return (<StyledInput{...rest}value={value}onChange={(event) => {// replace commas with periods, because uniswap exclusively uses period as the decimal separatorenforcer(event.target.value.replace(/,/g, '.').replace(/%/g, ''))}}// universal input optionsinputMode="decimal"title="Token Amount"autoComplete="off"autoCorrect="off"// text-specific optionstype="text"pattern="^[0-9]*$"placeholder={placeholder || '100'}min={0}max={100}minLength={1}maxLength={3}spellCheck="false"className={className}/>)})
Const KLEROS_LIST
KLEROS_LIST: "https://t2crtokens.eth.link" = "https://t2crtokens.eth.link"
Const KOVAN_CHAINLINK_TOKENS
KOVAN_CHAINLINK_TOKENS: { address: string; decimals: number; name: string; symbol: string }[] = [{symbol: 'WETH',name: 'Wrapped Ether',address: '0xd0A1E359811322d97991E03f863a0C30C2cF029C',decimals: 18,},{symbol: 'ZRX',name: '0x Protocol Token',address: '0x162c44e53097e7B5aaE939b297ffFD6Bf90D1EE3',decimals: 18,},{symbol: 'USDC',name: 'USD Coin USDC',address: '0xb7a4F3E9097C08dA09517b5aB877F7a917224ede',decimals: 6,},{symbol: 'DAI',name: 'Dai Stablecoin',address: '0x4F96Fe3b7A6Cf9725f59d353F723c1bDb64CA6Aa',decimals: 18,},{symbol: 'USDT',name: 'Tether USD',address: '0x07de306FF27a2B630B1141956844eB1552B956B5',decimals: 6,},{symbol: 'COMP',name: 'Compound',address: '0x61460874a7196d6a22D1eE4922473664b3E95270',decimals: 18,},{symbol: 'BAT',name: 'Basic Attention Token',address: '0x482dC9bB08111CB875109B075A40881E48aE02Cd',decimals: 18,},{symbol: 'WBTC',name: 'Wrapped BTC',address: '0xd3A691C852CDB01E281545A27064741F0B7f6825',decimals: 8,},{symbol: 'REP',name: 'Reputation',address: '0x50DD65531676F718B018De3dc48F92B53D756996',decimals: 18,},]
Const KashiContext
Kashi
Context: Context<{ dispatch: React.Dispatch<any>; state: State }> = createContext<{state: Statedispatch: React.Dispatch<any>}>({state: initialState,dispatch: () => null,})
Const Kovan
Kovan: "https://raw.githubusercontent.com/sushiswap/icons/master/network/kovan.jpg" = "https://raw.githubusercontent.com/sushiswap/icons/master/network/kovan.jpg"
Const LEFT_PAGE
LEFT_PAGE: "LEFT" = "LEFT"
Const LFBTC
LFBTC: Token = new Token(ChainId.MAINNET,'0xafcE9B78D409bF74980CACF610AFB851BF02F257',18,'LFBTC','LiftKitchen BTC')
Const LIFT
LIFT: Token = new Token(ChainId.MAINNET, '0xf9209d900f7ad1DC45376a2caA61c78f6dEA53B6', 18, 'LIFT', 'LiftKitchen')
Const LinkIcon
LinkIcon: any = styled(ExternalLink)`height: 16px;width: 18px;margin-left: 10px;// stroke: ${({ theme }) => theme.blue1};`
Const LinkIconWrapper
LinkIconWrapper: any = styled.a`text-decoration: none;cursor: pointer;align-items: center;justify-content: center;display: flex;:hover {text-decoration: none;opacity: 0.7;}:focus {outline: none;text-decoration: none;}:active {text-decoration: none;}`
Const LinkStyledButton
LinkStyledButton: any = styled.button<{ disabled?: boolean }>`border: none;text-decoration: none;background: none;cursor: ${({ disabled }) => (disabled ? 'default' : 'pointer')};color: ${({ theme, disabled }) => (disabled ? theme.text2 : theme.primary1)};font-weight: 500;:hover {text-decoration: ${({ disabled }) => (disabled ? null : 'underline')};}:focus {outline: none;text-decoration: ${({ disabled }) => (disabled ? null : 'underline')};}:active {text-decoration: none;}`
Const ListContainer
ListContainer: any = styled.div`// padding: 1rem;height: 100%;overflow-y: auto;padding-bottom: 80px;`
Const ListRow
ListRow: MemoExoticComponent<(Anonymous function)> = memo(({ listUrl }: { listUrl: string }) => {const listsByUrl = useSelector<AppState, AppState['lists']['byUrl']>((state) => state.lists.byUrl)const dispatch = useDispatch<AppDispatch>()const { current: list, pendingUpdate: pending } = listsByUrl[listUrl]const listColor = useListColor(list?.logoURI)const isActive = useIsListActive(listUrl)const [open, toggle] = useToggle(false)const node = useRef<HTMLDivElement>()const [referenceElement, setReferenceElement] = useState<HTMLButtonElement>()const [popperElement, setPopperElement] = useState<HTMLDivElement>()const { styles, attributes } = usePopper(referenceElement, popperElement, {placement: 'auto',strategy: 'fixed',modifiers: [{ name: 'offset', options: { offset: [8, 8] } }],})useOnClickOutside(node, open ? toggle : undefined)const handleAcceptListUpdate = useCallback(() => {if (!pending) returnReactGA.event({category: 'Lists',action: 'Update List from List Select',label: listUrl,})dispatch(acceptListUpdate(listUrl))}, [dispatch, listUrl, pending])const handleRemoveList = useCallback(() => {ReactGA.event({category: 'Lists',action: 'Start Remove List',label: listUrl,})if (window.prompt(`Please confirm you would like to remove this list by typing REMOVE`) === `REMOVE`) {ReactGA.event({category: 'Lists',action: 'Confirm Remove List',label: listUrl,})dispatch(removeList(listUrl))}}, [dispatch, listUrl])const handleEnableList = useCallback(() => {ReactGA.event({category: 'Lists',action: 'Enable List',label: listUrl,})dispatch(enableList(listUrl))}, [dispatch, listUrl])const handleDisableList = useCallback(() => {ReactGA.event({category: 'Lists',action: 'Disable List',label: listUrl,})dispatch(disableList(listUrl))}, [dispatch, listUrl])if (!list) return nullreturn (<RowWrapperid={listUrlRowHTMLId(listUrl)}active={isActive}bgColor={listColor}key={listUrl}className={`${isActive ? 'text-high-emphesis' : 'text-primary bg-dark-700'}`}>{list.logoURI ? (<ListLogo size="40px" logoURI={list.logoURI} alt={`${list.name} list logo`} />) : (<div style={{ width: '24px', height: '24px' }} />)}<Column style={{ flex: '1', marginLeft: '1rem' }}><Row><StyledTitleText active={isActive}>{list.name}</StyledTitleText></Row><RowFixed mt="4px"><StyledListUrlText active={isActive} mr="6px">{list.tokens.length} tokens</StyledListUrlText><StyledMenu ref={node as any}><Button variant="empty" onClick={toggle} ref={setReferenceElement} style={{ padding: '0' }}><Settings size={12} className="ml-1 stroke-current" /></Button>{open && (<PopoverContainer show={true} ref={setPopperElement as any} style={styles.popper} {...attributes.popper}><div>{list && listVersionLabel(list.version)}</div><SeparatorDark /><ExternalLink href={`https://tokenlists.org/token-list?url=${listUrl}`}>View list</ExternalLink><UnpaddedLinkStyledButton onClick={handleRemoveList} disabled={Object.keys(listsByUrl).length === 1}>Remove list</UnpaddedLinkStyledButton>{pending && (<UnpaddedLinkStyledButton onClick={handleAcceptListUpdate}>Update list</UnpaddedLinkStyledButton>)}</PopoverContainer>)}</StyledMenu></RowFixed></Column><ListToggleisActive={isActive}bgColor={listColor}toggle={() => {isActive ? handleDisableList() : handleEnableList()}}/></RowWrapper>)})
Const LoadingMessage
LoadingMessage: any = styled.div<{ error?: boolean }>`// ${({ theme }) => theme.flexRowNoWrap};align-items: center;justify-content: flex-start;// border-radius: ${({ theme }) => theme.borderRadius};margin-bottom: 20px;// color: ${({ theme, error }) => (error ? theme.red1 : 'inherit')};// border: 1px solid ${({ theme, error }) => (error ? theme.red1 : theme.text4)};& > * {padding: 1rem;}`
Const LoadingWrapper
LoadingWrapper: any = styled.div`// ${({ theme }) => theme.flexRowNoWrap};align-items: center;justify-content: center;`
Const MAINNET_CHAINLINK_TOKENS
MAINNET_CHAINLINK_TOKENS: { address: string; decimals: number; name: string; symbol: string }[] = [{symbol: '1INCH',name: '1INCH Token',address: '0x111111111117dC0aa78b770fA6A738034120C302',decimals: 18,},{symbol: 'AAVE',name: 'Aave Token',address: '0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9',decimals: 18,},{symbol: 'ADX',name: 'AdEx Network',address: '0xADE00C28244d5CE17D72E40330B1c318cD12B7c3',decimals: 18,},{symbol: 'AKRO',name: 'Akropolis',address: '0x8Ab7404063Ec4DBcfd4598215992DC3F8EC853d7',decimals: 18,},{symbol: 'ALPHA',name: 'AlphaToken',address: '0xa1faa113cbE53436Df28FF0aEe54275c13B40975',decimals: 18,},{symbol: 'AMP',name: 'Amp',address: '0xfF20817765cB7f73d4bde2e66e067E58D11095C2',decimals: 18,},{symbol: 'ANKR',name: 'Ankr Network',address: '0x8290333ceF9e6D528dD5618Fb97a76f268f3EDD4',decimals: 18,},{symbol: 'ANT',name: 'Aragon Network Token',address: '0xa117000000f279D81A1D3cc75430fAA017FA5A2e',decimals: 18,},{symbol: 'AUCTION',name: 'Bounce Token',address: '0xA9B1Eb5908CfC3cdf91F9B8B3a74108598009096',decimals: 18,},{symbol: 'BADGER',name: 'Badger',address: '0x3472A5A71965499acd81997a54BBA8D852C6E53d',decimals: 18,},{symbol: 'BAL',name: 'Balancer',address: '0xba100000625a3754423978a60c9317c58a424e3D',decimals: 18,},{symbol: 'BAND',name: 'BandToken',address: '0xBA11D00c5f74255f56a5E366F4F77f5A186d7f55',decimals: 18,},{symbol: 'BAT',name: 'Basic Attention Token',address: '0x0D8775F648430679A709E98d2b0Cb6250d2887EF',decimals: 18,},{symbol: 'BNT',name: 'Bancor',address: '0x1F573D6Fb3F13d689FF844B4cE37794d79a7FF1C',decimals: 18,},{symbol: 'BOR',name: 'BoringDAO',address: '0x3c9d6c1C73b31c837832c72E04D3152f051fc1A9',decimals: 18,},{symbol: 'BUSD',name: 'Binance USD',address: '0x4Fabb145d64652a948d72533023f6E7A623C7C53',decimals: 18,},{symbol: 'BZRX',name: 'bZx Protocol Token',address: '0x56d811088235F11C8920698a204A5010a788f4b3',decimals: 18,},{symbol: 'CEL',name: 'Celsius',address: '0xaaAEBE6Fe48E54f431b0C390CfaF0b017d09D42d',decimals: 4,},{symbol: 'COMP',name: 'Compound',address: '0xc00e94Cb662C3520282E6f5717214004A7f26888',decimals: 18,},{symbol: 'COVER',name: 'Cover Protocol Governance Token',address: '0x4688a8b1F292FDaB17E9a90c8Bc379dC1DBd8713',decimals: 18,},{symbol: 'CREAM',name: 'Cream',address: '0x2ba592F78dB6436527729929AAf6c908497cB200',decimals: 18,},{symbol: 'CRO',name: 'CRO',address: '0xA0b73E1Ff0B80914AB6fe0444E65848C4C34450b',decimals: 8,},{symbol: 'CRV',name: 'Curve DAO Token',address: '0xD533a949740bb3306d119CC777fa900bA034cd52',decimals: 18,},{symbol: 'DAI',name: 'Dai Stablecoin',address: '0x6B175474E89094C44Da98b954EedeAC495271d0F',decimals: 18,},{symbol: 'DPI',name: 'DefiPulse Index',address: '0x1494CA1F11D487c2bBe4543E90080AeBa4BA3C2b',decimals: 18,},{symbol: 'ENJ',name: 'Enjin Coin',address: '0xF629cBd94d3791C9250152BD8dfBDF380E2a3B9c',decimals: 18,},{symbol: 'ETH',name: 'Ethereum',address: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',decimals: 18,},{symbol: 'FEI',name: 'Fei Money',address: '0x956F47F50A910163D8BF957Cf5846D573E7f87CA',decimals: 18,},{symbol: 'FRONT',name: 'Frontier Token',address: '0xf8C3527CC04340b208C854E985240c02F7B7793f',decimals: 18,},{symbol: 'FRX',name: 'Frax Share',address: '0x3432B6A60D23Ca0dFCa7761B7ab56459D9C964D0',decimals: 18,},{symbol: 'FTM',name: 'Fantom Token',address: '0x4E15361FD6b4BB609Fa63C81A2be19d873717870',decimals: 18,},{symbol: 'FTX Token',name: 'FTT',address: '0x50D1c9771902476076eCFc8B2A83Ad6b9355a4c9',decimals: 18,},{symbol: 'GRT',name: 'Graph Token',address: '0xc944E90C64B2c07662A292be6244BDf05Cda44a7',decimals: 18,},{symbol: 'HEGIC',name: 'Hegic',address: '0x584bC13c7D411c00c01A62e8019472dE68768430',decimals: 18,},{symbol: 'HUSD',name: 'HUSD',address: '0xdF574c24545E5FfEcb9a659c229253D4111d87e1',decimals: 8,},{symbol: 'INJ',name: 'Injective Token',address: '0xe28b3B32B6c345A34Ff64674606124Dd5Aceca30',decimals: 18,},{symbol: 'KNC',name: 'Kyber Network Crystal',address: '0xdd974D5C2e2928deA5F71b9825b8b646686BD200',decimals: 18,},{symbol: 'KP3R',name: 'Keep3rV1',address: '0x1cEB5cB57C4D4E2b2433641b95Dd330A33185A44',decimals: 18,},{symbol: 'LINK',name: 'ChainLink Token',address: '0x514910771AF9Ca656af840dff83E8264EcF986CA',decimals: 18,},{symbol: 'LRC',name: 'LoopringCoin V2',address: '0xBBbbCA6A901c926F240b89EacB641d8Aec7AEafD',decimals: 18,},{symbol: 'MANA',name: 'Decentraland MANA',address: '0x0F5D2fB29fb7d3CFeE444a200298f468908cC942',decimals: 18,},{symbol: 'MATIC',name: 'Matic Token',address: '0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0',decimals: 18,},{symbol: 'MKR',name: 'Maker',address: '0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2',decimals: 18,},{symbol: 'MLN',name: 'Melon Token',address: '0xec67005c4E498Ec7f55E092bd1d35cbC47C91892',decimals: 18,},{symbol: 'MTA',name: 'Meta',address: '0xa3BeD4E1c75D00fa6f4E5E6922DB7261B5E9AcD2',decimals: 18,},{symbol: 'NMR',name: 'Numeraire',address: '0x1776e1F26f98b1A5dF9cD347953a26dd3Cb46671',decimals: 18,},{symbol: 'OCEAN',name: 'Ocean Token',address: '0x967da4048cD07aB37855c090aAF366e4ce1b9F48',decimals: 18,},{symbol: 'OGN',name: 'OriginToken',address: '0x8207c1FfC5B6804F6024322CcF34F29c3541Ae26',decimals: 18,},{symbol: 'OKB',name: 'OKB',address: '0x75231F58b43240C9718Dd58B4967c5114342a86c',decimals: 18,},{symbol: 'OMG',name: 'OMGToken',address: '0xd26114cd6EE289AccF82350c8d8487fedB8A0C07',decimals: 18,},{symbol: 'ORN',name: 'Orion Protocol',address: '0x0258F474786DdFd37ABCE6df6BBb1Dd5dfC4434a',decimals: 8,},{symbol: 'OXT',name: 'Orchid',address: '0x4575f41308EC1483f3d399aa9a2826d74Da13Deb',decimals: 18,},{symbol: 'PAX',name: 'Paxos Standard',address: '0x8E870D67F660D95d5be530380D0eC0bd388289E1',decimals: 18,},{symbol: 'PAXG',name: 'Paxos Gold',address: '0x45804880De22913dAFE09f4980848ECE6EcbAf78',decimals: 18,},{symbol: 'PERP',name: 'Perpetual',address: '0xbC396689893D065F41bc2C6EcbeE5e0085233447',decimals: 18,},{symbol: 'RAI',name: 'Rai Reflex Index',address: '0x03ab458634910AaD20eF5f1C8ee96F1D6ac54919',decimals: 18,},{symbol: 'RARI',name: 'Rarible',address: '0xFca59Cd816aB1eaD66534D82bc21E7515cE441CF',decimals: 18,},{symbol: 'RCN',name: 'Ripio Credit Network Token',address: '0xF970b8E36e23F7fC3FD752EeA86f8Be8D83375A6',decimals: 18,},{symbol: 'REN',name: 'Republic Token',address: '0x408e41876cCCDC0F92210600ef50372656052a38',decimals: 18,},{symbol: 'REPv2',name: 'Reputation',address: '0x221657776846890989a759BA2973e427DfF5C9bB',decimals: 18,},{symbol: 'RGT',name: 'Rari Governance Token',address: '0xD291E7a03283640FDc51b121aC401383A46cC623',decimals: 18,},{symbol: 'RLC',name: 'iEx.ec Network Token',address: '0x607F4C5BB672230e8672085532f7e901544a7375',decimals: 9,},{symbol: 'RUNE',name: 'THORChain ETH.RUNE',address: '0x3155BA85D5F96b2d030a4966AF206230e46849cb',decimals: 18,},{symbol: 'SAND',name: 'SAND',address: '0x3845badAde8e6dFF049820680d1F14bD3903a5d0',decimals: 18,},{symbol: 'SNX',name: 'Synthetix Network Token',address: '0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F',decimals: 18,},{symbol: 'SRM',name: 'Serum',address: '0x476c5E26a75bd202a9683ffD34359C0CC15be0fF',decimals: 6,},{symbol: 'sUSD',name: 'Synth sUSD',address: '0x57Ab1ec28D129707052df4dF418D58a2D46d5f51',decimals: 18,},{symbol: 'SUSHI',name: 'SushiToken',address: '0x6B3595068778DD592e39A122f4f5a5cF09C90fE2',decimals: 18,},{symbol: 'SXP',name: 'Swipe',address: '0x8CE9137d39326AD0cD6491fb5CC0CbA0e089b6A9',decimals: 18,},{symbol: 'TOMOE',name: 'TomoChain',address: '0x05D3606d5c81EB9b7B18530995eC9B29da05FaBa',decimals: 18,},{symbol: 'TRU',name: 'TrueFi',address: '0x4C19596f5aAfF459fA38B0f7eD92F11AE6543784',decimals: 8,},{symbol: 'TRY',name: 'TRYfinance',address: '0xc12eCeE46ed65D970EE5C899FCC7AE133AfF9b03',decimals: 18,},{symbol: 'TUSD',name: 'TrueUSD',address: '0x0000000000085d4780B73119b644AE5ecd22b376',decimals: 18,},{symbol: 'UMA',name: 'UMA Voting Token v1',address: '0x04Fa0d235C4abf4BcF4787aF4CF447DE572eF828',decimals: 18,},{symbol: 'UNI',name: 'Uniswap',address: '0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984',decimals: 18,},{symbol: 'USDC',name: 'USD Coin',address: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',decimals: 6,},{symbol: 'USDK',name: 'USDK',address: '0x1c48f86ae57291F7686349F12601910BD8D470bb',decimals: 18,},{symbol: 'USDT',name: 'Tether USD',address: '0xdAC17F958D2ee523a2206206994597C13D831ec7',decimals: 6,},{symbol: 'UST',name: 'Wrapped UST Token',address: '0xa47c8bf37f92aBed4A126BDA807A7b7498661acD',decimals: 18,},{symbol: 'WAVES',name: 'WAVES',address: '0x1cF4592ebfFd730c7dc92c1bdFFDfc3B9EfCf29a',decimals: 18,},{symbol: 'WBTC',name: 'Wrapped BTC',address: '0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599',decimals: 8,},{symbol: 'wNXM',name: 'Wrapped NXM',address: '0x0d438F3b5175Bebc262bF23753C1E53d03432bDE',decimals: 18,},{symbol: 'WOM',name: 'WOM Token',address: '0xBd356a39BFf2cAda8E9248532DD879147221Cf76',decimals: 18,},{symbol: 'xSUSHI',name: 'SushiBar',address: '0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272',decimals: 18,},{symbol: 'YFI',name: 'yearn.finance',address: '0x0bc529c00C6401aEF6D220BE8C6Ea1667F6Ad93e',decimals: 18,},{symbol: 'YFII',name: 'YFII.finance',address: '0xa1d0E215a23d7030842FC67cE582a6aFa3CCaB83',decimals: 18,},{symbol: 'ZRX',name: '0x Protocol Token',address: '0xE41d2489571d322189246DaFA5ebDe1F4699F498',decimals: 18,},{symbol: 'HT',name: 'Huobi Token',address: '0x6f259637dcD74C767781E37Bc6133cd6A68aa161',decimals: 18,},{symbol: 'RAMP',name: 'RAMP DEFI',address: '0x33D0568941C0C64ff7e0FB4fbA0B11BD37deEd9f',decimals: 18,},{symbol: 'LON',name: 'Tokenlon Network Token',address: '0x0000000000095413afc295d19edeb1ad7b71c952',decimals: 18,},{symbol: 'DNT',name: 'district0x',address: '0x0AbdAce70D3790235af448C88547603b945604ea',decimals: 18,},{symbol: 'renZEC',name: 'renZEC',address: '0x1C5db575E2Ff833E46a2E9864C22F4B22E0B37C2',decimals: 18,},]
Const MATIC_CHAINLINK_TOKENS
MATIC_CHAINLINK_TOKENS: { address: string; decimals: number; name: string; symbol: string }[] = [{symbol: 'AAVE',name: 'AAVE Token',address: '0xD6DF932A45C0f255f85145f286eA0b292B21C90B',decimals: 18,},{symbol: 'DAI',name: 'Dai Stablecoin',address: '0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063',decimals: 18,},{symbol: 'WETH',name: 'Wrapped Ethereum',address: '0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619',decimals: 18,},{symbol: 'WMATIC',name: 'Wrapped Matic',address: '0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270',decimals: 18,},{symbol: 'USDC',name: 'USD Coin',address: '0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174',decimals: 6,},{symbol: 'USDT',name: 'Tether USD',address: '0xc2132D05D31c914a87C6611C10748AEb04B58e8F',decimals: 6,},{symbol: 'WBTC',name: 'Wrapped Bitcoin',address: '0x1BFD67037B42Cf73acF2047067bd4F2C47D9BfD6',decimals: 8,},]
Const MAXIMUM_INTEREST_PER_YEAR
MAXIMUM_INTEREST_PER_YEAR: BigNumber = BigNumber.from(317097920000).mul(BigNumber.from(60)).mul(BigNumber.from(60)).mul(BigNumber.from(24)).mul(BigNumber.from(365))
Const MAXIMUM_TARGET_UTILIZATION
MAXIMUM_TARGET_UTILIZATION: BigNumber = BigNumber.from('800000000000000000')
Const MAX_HOPS
MAX_HOPS: 3 = 3
Const MEOW
MEOW: Token = new Token(ChainId.MAINNET, '0x650F44eD6F1FE0E1417cb4b3115d52494B4D9b6D', 18, 'MEOW', 'Meowshi')
Const MINIMUM_INTEREST_PER_YEAR
MINIMUM_INTEREST_PER_YEAR: BigNumber = BigNumber.from(79274480).mul(BigNumber.from(60)).mul(BigNumber.from(60)).mul(BigNumber.from(24)).mul(BigNumber.from(365))
Const MINIMUM_TARGET_UTILIZATION
MINIMUM_TARGET_UTILIZATION: BigNumber = BigNumber.from('700000000000000000')
Const MIN_ETH
MIN_ETH: JSBI = JSBI.exponentiate(JSBI.BigInt(10), JSBI.BigInt(16))
Const MIN_NATIVE_CURRENCY_FOR_GAS
MIN_NATIVE_CURRENCY_FOR_GAS: JSBI = JSBI.exponentiate(JSBI.BigInt(10), JSBI.BigInt(16))
Const MIR
MIR: Token = new Token(ChainId.MAINNET, '0x09a3EcAFa817268f77BE1283176B946C4ff2E608', 18, 'MIR', 'Wrapped MIR')
Const Mainnet
Mainnet: "https://raw.githubusercontent.com/sushiswap/icons/master/network/mainnet.jpg" = "https://raw.githubusercontent.com/sushiswap/icons/master/network/mainnet.jpg"
Const Matic
Matic: "https://raw.githubusercontent.com/sushiswap/icons/master/network/polygon.jpg" = "https://raw.githubusercontent.com/sushiswap/icons/master/network/polygon.jpg"
Const MaticLogo
MaticLogo: "https://raw.githubusercontent.com/sushiswap/icons/master/token/polygon.jpg" = "https://raw.githubusercontent.com/sushiswap/icons/master/token/polygon.jpg"
Const MenuFlyout
MenuFlyout: any = styled.span`min-width: 8.125rem;background-color: #161522;border-radius: 10px;box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.01), 0px 4px 8px rgba(0, 0, 0, 0.04), 0px 16px 24px rgba(0, 0, 0, 0.04),0px 24px 32px rgba(0, 0, 0, 0.01);padding: 0.5rem;display: flex;flex-direction: column;font-size: 1rem;position: absolute;top: 3rem;right: 0rem;z-index: 100;`
Const MenuItem
MenuItem: any = styled(RowBetween)`padding: 4px 20px;height: 56px;display: grid;grid-template-columns: auto minmax(auto, 1fr) auto minmax(0, 72px);grid-gap: 16px;cursor: ${({ disabled }) => !disabled && 'pointer'};pointer-events: ${({ disabled }) => disabled && 'none'};:hover {// background-color: ${({ theme, disabled }) => !disabled && theme.bg2};}opacity: ${({ disabled, selected }) => (disabled || selected ? 0.5 : 1)};`
Const Message
Message: any = styled.h2`// color: ${({ theme }) => theme.secondary1};`
Const MessageWrapper
MessageWrapper: any = styled.div`display: flex;align-items: center;justify-content: center;height: 20rem;`
Const MigrationSupported
MigrationSupported: ChainId[] = [ChainId.MAINNET, ChainId.BSC, ChainId.MATIC]
Const ModalInfo
ModalInfo: any = styled.div`// ${({ theme }) => theme.flexRowNoWrap}align-items: center;padding: 1rem 1rem;margin: 0.25rem 0.5rem;justify-content: center;flex: 1;user-select: none;`
Const Moonbeam
Moonbeam: "https://raw.githubusercontent.com/sushiswap/icons/master/network/moonbeam.jpg" = "https://raw.githubusercontent.com/sushiswap/icons/master/network/moonbeam.jpg"
Const MoonbeamLogo
MoonbeamLogo: "https://raw.githubusercontent.com/sushiswap/icons/master/token/eth.jpg" = "https://raw.githubusercontent.com/sushiswap/icons/master/token/eth.jpg"
Const Moonriver
Moonriver: "https://raw.githubusercontent.com/sushiswap/icons/master/network/moonriver.jpg" = "https://raw.githubusercontent.com/sushiswap/icons/master/network/moonriver.jpg"
Const MovrLogo
MovrLogo: "https://raw.githubusercontent.com/sushiswap/icons/master/token/movr.jpg" = "https://raw.githubusercontent.com/sushiswap/icons/master/token/movr.jpg"
Const NFTX
NFTX: Token = new Token(ChainId.MAINNET, '0x87d73E916D7057945c9BcD8cdd94e42A6F47f776', 18, 'NFTX', 'NFTX')
Const NFTX_LIST
NFTX_LIST: "https://nftx.ethereumdb.com/v2/tokenlist/" = "https://nftx.ethereumdb.com/v2/tokenlist/"
Const NameOverflow
NameOverflow: any = styled.div`white-space: nowrap;text-overflow: ellipsis;overflow: hidden;text-overflow: ellipsis;max-width: 140px;font-size: 12px;`
Const NetworkContextName
NetworkContextName: "NETWORK" = "NETWORK"
Const NetworkIcon
NetworkIcon: any = styled(Activity)`width: 16px;height: 16px;`
Const OHM
OHM: Token = new Token(ChainId.MAINNET, '0x383518188C0C6d7730D91b2c03a03C837814a899', 9, 'Olympus', 'OHM')
Const OKEx
OKEx: "https://raw.githubusercontent.com/sushiswap/icons/master/network/okex.jpg" = "https://raw.githubusercontent.com/sushiswap/icons/master/network/okex.jpg"
Const OKExLogo
OKExLogo: "https://raw.githubusercontent.com/sushiswap/icons/master/token/okt.jpg" = "https://raw.githubusercontent.com/sushiswap/icons/master/token/okt.jpg"
Const ONE
ONE: Fraction = new Fraction(1, 1)
Const ONE_BIPS
ONE_BIPS: Percent = new Percent(JSBI.BigInt(1), JSBI.BigInt(10000))
Const ONE_HUNDRED_PERCENT
ONE_HUNDRED_PERCENT: Percent = new Percent(JSBI.BigInt(10000), JSBI.BigInt(10000))
Const ONE_TENTHS_PERCENT
ONE_TENTHS_PERCENT: Percent = new Percent(10, 10_000)
Const OPENMEV_METAMASK_SUPPORTED_NETWORKS
OPENMEV_METAMASK_SUPPORTED_NETWORKS: MAINNET[] = [OPENMEV_METAMASK_CHAIN_ID.MAINNET]
Const OPENMEV_RELAY_ENABLED
OPENMEV_RELAY_ENABLED: false = false
Const OPENMEV_SUPPORTED_NETWORKS
OPENMEV_SUPPORTED_NETWORKS: ChainId[] = [ChainId.MAINNET]
Const OPTIMISM_LIST
OPTIMISM_LIST: "https://static.optimism.io/optimism.tokenlist.json" = "https://static.optimism.io/optimism.tokenlist.json"
Const OPYN_LIST
OPYN_LIST: "https://raw.githubusercontent.com/opynfinance/opyn-tokenlist/master/opyn-v1.tokenlist.json" = "https://raw.githubusercontent.com/opynfinance/opyn-tokenlist/master/opyn-v1.tokenlist.json"
Const OVERLAY_READY
OVERLAY_READY: "OVERLAY_READY" = "OVERLAY_READY"
Const OptionGrid
OptionGrid: any = styled.div`display: grid;grid-gap: 10px;// ${({ theme }) => theme.mediaWidth.upToMedium`grid-template-columns: 1fr;grid-gap: 10px;`};`
Const PAIR_INTERFACE
PAIR_INTERFACE: Interface = new Interface(IUniswapV2PairABI)
Const PERMIT_ALLOWED_TYPE
PERMIT_ALLOWED_TYPE: { name: string; type: string }[] = [{ name: 'holder', type: 'address' },{ name: 'spender', type: 'address' },{ name: 'nonce', type: 'uint256' },{ name: 'expiry', type: 'uint256' },{ name: 'allowed', type: 'bool' },]
Const PERMIT_VALIDITY_BUFFER
PERMIT_VALIDITY_BUFFER: number = 20 * 60
Const PERSISTED_KEYS
PERSISTED_KEYS: string[] = ['user', 'transactions', 'lists']
Const PLAY
PLAY: Token = new Token(ChainId.MAINNET,'0x33e18a092a93ff21aD04746c7Da12e35D34DC7C4',18,'PLAY','Metaverse NFT Index')
Const PONT
PONT: Token = new Token(ChainId.MAINNET,'0xcb46C550539ac3DB72dc7aF7c89B11c306C727c2',9,'pONT','Poly Ontology Token')
Const POOL_DENY
POOL_DENY: string[] = ['14', '29', '45', '30']
Const PRICE_IMPACT_WITHOUT_FEE_CONFIRM_MIN
PRICE_IMPACT_WITHOUT_FEE_CONFIRM_MIN: Percent = new Percent(JSBI.BigInt(1000), BIPS_BASE)
Const PROTOCOL_FEE
PROTOCOL_FEE: BigNumber = BigNumber.from('10000')
Const PROTOCOL_FEE_DIVISOR
PROTOCOL_FEE_DIVISOR: BigNumber = BigNumber.from('100000')
Const PROTOCOL_MERKLE_ROOT
PROTOCOL_MERKLE_ROOT: "https://raw.githubusercontent.com/sushiswap/sushi-vesting/master/merkle/protocol-02/merkle-10959148-12171394.json" = "https://raw.githubusercontent.com/sushiswap/sushi-vesting/master/merkle/protocol-02/merkle-10959148-12171394.json"
Const PWING
PWING: Token = new Token(ChainId.MAINNET,'0xDb0f18081b505A7DE20B18ac41856BCB4Ba86A1a',9,'pWING','Poly Ontology Wing Token')
Const PaddedColumn
PaddedColumn: any = styled(AutoColumn)`padding: 20px;`
Const Palm
Palm: "https://raw.githubusercontent.com/sushiswap/icons/master/network/palm.jpg" = "https://raw.githubusercontent.com/sushiswap/icons/master/network/palm.jpg"
Const PalmLogo
PalmLogo: "https://raw.githubusercontent.com/sushiswap/icons/master/token/palm.jpg" = "https://raw.githubusercontent.com/sushiswap/icons/master/token/palm.jpg"
Const PendingSection
PendingSection: any = styled.div`// ${({ theme }) => theme.flexColumnNoWrap};align-items: center;justify-content: center;width: 100%;& > * {width: 100%;}`
Const Polygon
Polygon: "https://raw.githubusercontent.com/sushiswap/icons/master/network/polygon.jpg" = "https://raw.githubusercontent.com/sushiswap/icons/master/network/polygon.jpg"
Const PoolAllocationWrapper
PoolAllocationWrapper: any = styled.div`margin-top: 1rem;background-color: ${({ theme }) => theme.bg1};border-radius: 0.625rem 0.625rem 0 0;padding: 1rem;`
Const PoolBreakDownWrapper
PoolBreakDownWrapper: any = styled.div`background-color: ${({ theme }) => theme.bg1};border-top: 1px solid rgba(42, 58, 80, 0.4);padding: 1remborder-radius: 0 0 0.625rem 0.625rem;`
Const PoolTokenRow
PoolTokenRow: any = styled.span`display: flex;margin: 10px 0;`
Const PopoverContainer
PopoverContainer: any = styled.div<{ show: boolean }>`z-index: 100;visibility: ${(props) => (props.show ? 'visible' : 'hidden')};opacity: ${(props) => (props.show ? 1 : 0)};transition: visibility 150ms linear, opacity 150ms linear;background: ${({ theme }) => theme.bg2};border: 1px solid ${({ theme }) => theme.bg3};box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.01), 0px 4px 8px rgba(0, 0, 0, 0.04), 0px 16px 24px rgba(0, 0, 0, 0.04),0px 24px 32px rgba(0, 0, 0, 0.01);// color: ${({ theme }) => theme.text2};// border-radius: ${({ theme }) => theme.borderRadius};padding: 1rem;display: grid;grid-template-rows: 1fr;grid-gap: 8px;font-size: 1rem;text-align: left;`
Const Popup
Popup: any = styled.div`display: inline-block;width: 100%;padding: 1em;// background-color: ${({ theme }) => theme.bg1};position: relative;border-radius: 10px;padding: 20px;padding-right: 35px;overflow: hidden;// ${({ theme }) => theme.mediaWidth.upToSmall`min-width: 290px;&:not(:last-of-type) {margin-right: 20px;}`}`
Const QUERY
QUERY: "{bar(id: "0x8798249c2e607446efb7ad49ec89dd1865ff4272") {ratio}}" = `{bar(id: "0x8798249c2e607446efb7ad49ec89dd1865ff4272") {ratio}}`
Const RAI
RAI: Token = new Token(ChainId.MAINNET,'0x03ab458634910AaD20eF5f1C8ee96F1D6ac54919',18,'Rai Reflex Index','RAI')
Const REGISTRAR_ABI
REGISTRAR_ABI: { constant: boolean; inputs: { name: string; type: string }[]; name: string; outputs: { name: string; type: string }[]; payable: boolean; stateMutability: string; type: string }[] = [{constant: true,inputs: [{name: 'node',type: 'bytes32',},],name: 'resolver',outputs: [{name: 'resolverAddress',type: 'address',},],payable: false,stateMutability: 'view',type: 'function',},]
Const REGISTRAR_ADDRESS
REGISTRAR_ADDRESS: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e" = "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"
Const REMOVE_TIPS
REMOVE_TIPS: {}
Const RENBTC
RENBTC: Token = new Token(1, '0xEB4C2781e4ebA804CE9a9803C67d0893436bB27D', 8, 'renBTC', 'renBTC')
Const RESOLVER_ABI
RESOLVER_ABI: { constant: boolean; inputs: { internalType: string; name: string; type: string }[]; name: string; outputs: { internalType: string; name: string; type: string }[]; payable: boolean; stateMutability: string; type: string }[] = [{constant: true,inputs: [{internalType: 'bytes32',name: 'node',type: 'bytes32',},],name: 'contenthash',outputs: [{internalType: 'bytes',name: '',type: 'bytes',},],payable: false,stateMutability: 'view',type: 'function',},]
Const RIGHT_PAGE
RIGHT_PAGE: "RIGHT" = "RIGHT"
Const ROLL_LIST
ROLL_LIST: "https://app.tryroll.com/tokens.json" = "https://app.tryroll.com/tokens.json"
Const RUNE
RUNE: Token = new Token(ChainId.MAINNET, '0x3155BA85D5F96b2d030a4966AF206230e46849cb', 18, 'RUNE', 'RUNE.ETH')
Const ReferenceElement
ReferenceElement: any = styled.div`display: inline-block;`
Const Rinkeby
Rinkeby: "https://raw.githubusercontent.com/sushiswap/icons/master/network/rinkeby.jpg" = "https://raw.githubusercontent.com/sushiswap/icons/master/network/rinkeby.jpg"
Const Ropsten
Ropsten: "https://raw.githubusercontent.com/sushiswap/icons/master/network/ropsten.jpg" = "https://raw.githubusercontent.com/sushiswap/icons/master/network/ropsten.jpg"
Const RowBetween
RowBetween: any = styled(Row)`justify-content: space-between;`
Const RowFixed
RowFixed: any = styled(Row)<{ gap?: string; justify?: string }>`width: fit-content;margin: ${({ gap }) => gap && `-${gap}`};`
Const RowFlat
RowFlat: any = styled.div`display: flex;align-items: flex-end;`
Const RowNoFlex
RowNoFlex: any = styled(AutoRow)`flex-wrap: nowrap;`
Const RowWrapper
RowWrapper: any = styled(Row)<{ bgColor: string; active: boolean }>`background-color: ${({ bgColor, active, theme }) => (active ? bgColor ?? 'transparent' : theme.bg2)};transition: 200ms;align-items: center;padding: 1rem;border-radius: 10px;`
Const SECONDS_PER_YEAR
SECONDS_PER_YEAR: number = 365.2425 * 86400
Const SET_LIST
SET_LIST: "https://raw.githubusercontent.com/SetProtocol/uniswap-tokenlist/main/set.tokenlist.json" = "https://raw.githubusercontent.com/SetProtocol/uniswap-tokenlist/main/set.tokenlist.json"
Const SOCK
SOCK: Element = (<span role="img" aria-label="has socks emoji" style={{ marginTop: -4, marginBottom: -4 }}>🧦</span>)
Const SPANK
SPANK: Token = new Token(ChainId.MAINNET, '0x42d6622deCe394b54999Fbd73D108123806f6a18', 18, 'Spank', 'SPANK')
Const STARTING_INTEREST_PER_YEAR
STARTING_INTEREST_PER_YEAR: BigNumber = BigNumber.from(317097920).mul(BigNumber.from(60)).mul(BigNumber.from(60)).mul(BigNumber.from(24)).mul(BigNumber.from(365))
Const STETH
STETH: Token = new Token(ChainId.MAINNET, '0xDFe66B14D37C77F4E9b180cEb433d1b164f0281D', 18, 'stETH', 'stakedETH')
Const SYNTHETIX_LIST
SYNTHETIX_LIST: "https://synths.snx.eth.link" = "https://synths.snx.eth.link"
Const SearchInput
SearchInput: any = styled.input`position: relative;display: flex;padding: 16px;align-items: center;width: 100%;white-space: nowrap;background: none;border: none;outline: none;border-radius: 10px;// color: ${({ theme }) => theme.text1};// border-style: solid;// border: 1px solid ${({ theme }) => theme.bg3};-webkit-appearance: none;font-size: 18px;::placeholder {// color: ${({ theme }) => theme.text3};}transition: border 100ms;:focus {// border: 1px solid ${({ theme }) => theme.primary1};outline: none;}`
Const SectionBreak
SectionBreak: any = styled.div`height: 1px;width: 100%;// background-color: ${({ theme }) => theme.bg3};`
Const Separator
Separator: any = styled.div`width: 100%;height: 1px;// background-color: ${({ theme }) => theme.bg2};`
Const SeparatorDark
SeparatorDark: any = styled.div`width: 100%;height: 1px;// background-color: ${({ theme }) => theme.bg3};`
Const Skeleton
Skeleton: any = styled.span`background-color: ${defaultBaseColor};background-image: linear-gradient(90deg, ${defaultBaseColor}, ${defaultHighlightColor}, ${defaultBaseColor});background-size: 200px 100%;background-repeat: no-repeat;border-radius: 4px;animation: ${skeletonKeyframes} 2s infinite;display: inline-block;line-height: 1;width: 100%;`
Const Spinner
Spinner: any = styled.img`animation: 2s ${rotate} linear infinite;width: 16px;height: 16px;`
Const StatusText
StatusText: any = styled.div<{ isActive?: boolean }>`margin: 0 10px;width: 24px;color: ${({ theme, isActive }) => (isActive ? theme.text1 : theme.text3)};`
Const StyledArrowLeft
StyledArrowLeft: any = styled(ArrowLeft)`color: ${({ theme }) => theme.text1};`
Const StyledBalanceMaxMini
StyledBalanceMaxMini: any = styled.button`height: 22px;width: 22px;// background-color: ${({ theme }) => theme.bg2};border: none;border-radius: 50%;padding: 0.2rem;font-size: 0.875rem;font-weight: 400;margin-left: 0.4rem;cursor: pointer;// color: ${({ theme }) => theme.text2};display: flex;justify-content: center;align-items: center;float: right;:hover {// background-color: ${({ theme }) => theme.bg3};}:focus {// background-color: ${({ theme }) => theme.bg3};outline: none;}`
Const StyledDialogContent
StyledDialogContent: any = styled(({ minHeight, maxHeight, maxWidth, mobile, isOpen, ...rest }) => (<AnimatedDialogContent {...rest} />)).attrs({'aria-label': 'dialog',})`// overflow-y: ${({ mobile }) => (mobile ? 'scroll' : 'hidden')};overflow-y: auto;&[data-reach-dialog-content] {display: flex;align-self: ${({ mobile }) => (mobile ? 'flex-end' : 'center')};margin: 4rem 0.5rem;padding: 0;background-color: #000;box-shadow: 0 4px 8px 0 ${() => transparentize(0.95, '#000')};width: 100vw;border-radius: 10px;// overflow-y: ${({ mobile }) => (mobile ? 'scroll' : 'hidden')};overflow-y: auto;overflow-x: hidden;${({ maxWidth }) =>maxWidth &&css`max-width: ${maxWidth}px;`}${({ maxHeight }) =>maxHeight &&css`max-height: ${maxHeight}vh;`}${({ minHeight }) =>minHeight &&css`min-height: ${minHeight}vh;`}@media (min-width: 640px) {width: 65vw;margin: 0;}}`
Const StyledDialogOverlay
StyledDialogOverlay: any = styled(AnimatedDialogOverlay)`backdrop-filter: blur(10px);&[data-reach-dialog-overlay] {z-index: 10;background-color: transparent;overflow: hidden;display: flex;align-items: center;justify-content: center;background-color: rgba(0, 0, 0, 0.425);}`
Const StyledDropDown
StyledDropDown: any = styled(ChevronDownIcon)<{ selected: boolean }>`margin: 0 0.25rem 0 0.5rem;height: 35%;path {stroke: ${({ selected, theme }) => (selected ? theme.text1 : theme.white)};stroke-width: 1.5px;}`
Const StyledInput
StyledInput: any = styled.input<{error?: booleanfontSize?: stringalign?: string}>`color: ${({ error, theme }) => (error ? theme.red1 : theme.text1)};width: 0;position: relative;font-weight: 500;outline: none;border: none;flex: 1 1 auto;background-color: transparent;font-size: ${({ fontSize }) => fontSize ?? '24px'};text-align: ${({ align }) => align && align};white-space: nowrap;overflow: hidden;text-overflow: ellipsis;padding: 0px;-webkit-appearance: textfield;::-webkit-search-decoration {-webkit-appearance: none;}[type='number'] {-moz-appearance: textfield;}::-webkit-outer-spin-button,::-webkit-inner-spin-button {-webkit-appearance: none;}::placeholder {color: ${({ theme }) => theme.text4};}`
Const StyledListUrlText
StyledListUrlText: any = styled.div<{ active: boolean }>`font-size: 12px;color: ${({ theme, active }) => (active ? theme.white : theme.text2)};`
Const StyledLoader
StyledLoader: any = styled(Loader)`margin-right: 1rem;`
Const StyledMenu
StyledMenu: any = styled.div`// margin-left: 0.5rem;display: flex;justify-content: center;align-items: center;position: relative;border: none;text-align: left;`
Const StyledMenuButton
StyledMenuButton: any = styled.button`position: relative;width: 100%;height: 100%;border: none;background-color: transparent;margin: 0;padding: 0;height: 35px;padding: 0.15rem 0.5rem;border-radius: 10px;:hover,:focus {cursor: pointer;outline: none;}> * {// stroke: ${({ theme }) => theme.text1};}`
Const StyledNumericalInput
StyledNumericalInput: any = styled(NumericalInput)`caret-color: #e3e3e3;`
Const StyledSVG
StyledSVG: any = styled.svg<{ size: string; stroke?: string }>`animation: 2s ${rotate} linear infinite;height: ${({ size }) => size};width: ${({ size }) => size};path {stroke: ${({ stroke, theme }) => stroke ?? theme.primary1};}`
Const StyledSlider
StyledSlider: any = styled(Slider)`margin: 0.8rem auto 2rem auto;width: 95% !important;.rc-slider-mark-text {color: #575757;}.rc-slider-mark-text-active {color: #7f7f7f;}.rc-slider-rail {background-color: #202231;}.rc-slider-track {background: linear-gradient(to right, #27b0e6, #fa52a0);}.rc-slider-handle {border-color: #fa52a0;}.rc-slider-handle:hover {border-color: #fa52a0;}.rc-slider-handle-click-focused:focus {border-color: #fa52a0;}.rc-slider-dot-active {border-color: #fa52a0;}`
Const StyledTitleText
StyledTitleText: any = styled.div<{ active: boolean }>`font-size: 16px;overflow: hidden;text-overflow: ellipsis;font-weight: 600;color: ${({ theme, active }) => (active ? theme.white : theme.text2)};`
Const SubHeader
SubHeader: any = styled.div`// color: ${({ theme }) => theme.text1};margin-top: 10px;font-size: 12px;`
Const SwapRoute
SwapRoute: MemoExoticComponent<(Anonymous function)> = memo(({ trade }: { trade: Trade<Currency, Currency, TradeType> }) => {return (<div className="flex flex-wrap items-center justify-end">{trade.route.path.map((token, i, path) => {const isLastItem: boolean = i === path.length - 1const currency = unwrappedToken(token)return (<Fragment key={i}><div className="flex space-x-2 flex-end"><div className="text-sm font-bold text-high-emphesis">{currency.symbol}</div></div>{isLastItem ? null : <ChevronRightIcon width={12} height={12} />}</Fragment>)})}</div>)})
Const THE_GRAPH
THE_GRAPH: "https://api.thegraph.com" = "https://api.thegraph.com"
Const THIRTY_BIPS_FEE
THIRTY_BIPS_FEE: Percent = new Percent(JSBI.BigInt(30), JSBI.BigInt(10000))
Const TRANSFORMED_DEFAULT_TOKEN_LIST
TRANSFORMED_DEFAULT_TOKEN_LIST: Readonly<{}> = listToTokenMap(DEFAULT_TOKEN_LIST)
Const TRIBE
TRIBE: Token = new Token(ChainId.MAINNET, '0xc7283b66Eb1EB5FB86327f08e1B5816b0720212B', 18, 'TRIBE', 'Tribe')
Const TWENTY_FIVE_BIPS_FEE
TWENTY_FIVE_BIPS_FEE: Percent = new Percent(JSBI.BigInt(25), JSBI.BigInt(10000))
Const Tabs
Tabs: any = styled.div`display: flex;flex-wrap: no-wrap;align-items: center;border-radius: 3rem;justify-content: space-evenly;`
Const Tag
Tag: any = styled.div`background-color: ${({ theme }) => theme.bg3};// color: ${({ theme }) => theme.text2};font-size: 14px;border-radius: 4px;padding: 0.25rem 0.3rem 0.25rem 0.3rem;max-width: 6rem;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;justify-self: flex-end;margin-right: 4px;`
Const TagContainer
TagContainer: any = styled.div`display: flex;justify-content: flex-end;`
Const Telos
Telos: "https://raw.githubusercontent.com/sushiswap/logos/main/network/telos/0xD102cE6A4dB07D247fcc28F366A623Df0938CA9E.jpg" = "https://raw.githubusercontent.com/sushiswap/logos/main/network/telos/0xD102cE6A4dB07D247fcc28F366A623Df0938CA9E.jpg"
Const TelosLogo
TelosLogo: "https://raw.githubusercontent.com/sushiswap/logos/main/network/telos/0xD102cE6A4dB07D247fcc28F366A623Df0938CA9E.jpg" = "https://raw.githubusercontent.com/sushiswap/logos/main/network/telos/0xD102cE6A4dB07D247fcc28F366A623Df0938CA9E.jpg"
Const TextDot
TextDot: any = styled.div`height: 3px;width: 3px;// background-color: ${({ theme }) => theme.text2};border-radius: 50%;`
Const ToggleElement
ToggleElement: any = styled.span<{ isActive?: boolean; bgColor?: string }>`border-radius: 50%;height: 24px;width: 24px;background-color: ${({ isActive, bgColor, theme }) => (isActive ? bgColor : theme.bg4)};:hover {opacity: 0.8;}`
Const TokenListLogoWrapper
TokenListLogoWrapper: any = styled.img`height: 20px;`
Const TokenSection
TokenSection: any = styled.div<{ dim?: boolean }>`padding: 4px 20px;height: 56px;display: grid;grid-template-columns: auto minmax(auto, 1fr) auto;grid-gap: 16px;align-items: center;opacity: ${({ dim }) => (dim ? '0.4' : '1')};`
Const TooltipContainer
TooltipContainer: any = styled.div`width: 256px;padding: 0.6rem 1rem;font-weight: 400;word-break: break-word;`
Const TrashIcon
TrashIcon: any = styled(Trash)`height: 16px;width: 18px;margin-left: 10px;stroke: currentColor;cursor: pointer;align-items: center;justify-content: center;display: flex;:hover {opacity: 0.7;}`
Const UMA
UMA: Token = new Token(ChainId.MAINNET, '0x04Fa0d235C4abf4BcF4787aF4CF447DE572eF828', 18, 'UMA', 'UMA')
Const UMA_CALL
UMA_CALL: Token = new Token(ChainId.MAINNET,'0x1062aD0E59fa67fa0b27369113098cC941Dd0D5F',18,'UMA','UMA 35 Call [30 Apr 2021]')
Const UMA_LIST
UMA_LIST: "https://umaproject.org/uma.tokenlist.json" = "https://umaproject.org/uma.tokenlist.json"
Const UNI_FACTORY_ADDRESS
UNI_FACTORY_ADDRESS: "0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f" = "0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f"
Const UNSUPPORTED_LIST_URLS
UNSUPPORTED_LIST_URLS: string[] = [BA_LIST]
Const USDC
USDC: Token = new Token(ChainId.TELOS, '0x620fd5fa44BE6af63715Ef4E65DDFA0387aD13F5', 6, 'USDC', 'USD Coin')
Const USDP
USDP: Token = new Token(ChainId.MAINNET,'0x1456688345527bE1f37E9e627DA0837D6f08C925',18,'USDP','USDP Stablecoin')
Const USDT
USDT: Token = new Token(ChainId.TELOS, '0x33284f95ccb7B948d9D352e1439561CF83d8d00d', 8, 'USDT', 'Tether USD')
Const UST
UST: Token = new Token(ChainId.MAINNET, '0xa47c8bf37f92aBed4A126BDA807A7b7498661acD', 18, 'UST', 'Wrapped UST')
Const UTF_8_DECODER
UTF_8_DECODER: TextDecoder = new TextDecoder()
Const UTILIZATION_PRECISION
UTILIZATION_PRECISION: BigNumber = BigNumber.from('1000000000000000000')
Const UnpaddedLinkStyledButton
UnpaddedLinkStyledButton: any = styled(LinkStyledButton)`padding: 0;font-size: 1rem;opacity: ${({ disabled }) => (disabled ? '0.4' : '1')};`
Const UpperSection
UpperSection: any = styled.div`position: relative;h5 {margin: 0;margin-bottom: 0.5rem;font-size: 1rem;font-weight: 400;}h5:last-child {margin-bottom: 0px;}h4 {margin-top: 0;font-weight: 500;}`
Const V2_SWAP_DEFAULT_SLIPPAGE
V2_SWAP_DEFAULT_SLIPPAGE: Percent = new Percent(50, 10_000)
Const VISIBILITY_STATE_SUPPORTED
VISIBILITY_STATE_SUPPORTED: boolean = typeof document !== 'undefined' && 'visibilityState' in document
Const WBTC
WBTC: Token = new Token(ChainId.TELOS, '0x33284f95ccb7B948d9D352e1439561CF83d8d00d', 8, 'WBTC', 'Wrapped Bitcoin')
Const WEEKLY_MERKLE_ROOT
WEEKLY_MERKLE_ROOT: "https://raw.githubusercontent.com/sushiswap/sushi-vesting/master/merkle/week-27/merkle-10959148-12171394.json" = "https://raw.githubusercontent.com/sushiswap/sushi-vesting/master/merkle/week-27/merkle-10959148-12171394.json"
Const WETH
WETH: Token = new Token(ChainId.TELOS, '0xa722c13135930332Eb3d749B2F0906559D2C5b99', 18, 'WETH', 'Wrapped Ether')
Const WOOFY
WOOFY: Token = new Token(ChainId.MAINNET, '0xD0660cD418a64a1d44E9214ad8e459324D8157f1', 12, 'Woofy', 'WOOFY')
Const WRAPPED_LIST
WRAPPED_LIST: "https://wrapped.tokensoft.eth.link" = "https://wrapped.tokensoft.eth.link"
Const Web3ReactRoot
Web3ReactRoot: (args: Web3ReactProviderArguments) => Element = createWeb3ReactRoot(NetworkContextName)
Type declaration
-
- (args: Web3ReactProviderArguments): Element
-
Parameters
-
args: Web3ReactProviderArguments
Returns Element
Const Wrapper
Wrapper: any = styled.div`// ${({ theme }) => theme.flexColumnNoWrap}margin: 0;padding: 0;width: 100%;`
Const XSUSHI
XSUSHI: Token = new Token(ChainId.MAINNET, '0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272', 18, 'xSUSHI', 'SushiBar')
Const XSUSHI_CALL
XSUSHI_CALL: Token = new Token(ChainId.MAINNET,'0xada279f9301C01A4eF914127a6C2a493Ad733924',18,'XSUc25-0531','XSUSHI 25 Call [31 May 2021]')
Const YEARN_LIST
YEARN_LIST: "https://yearn.science/static/tokenlist.json" = "https://yearn.science/static/tokenlist.json"
Const YFI
YFI: Token = new Token(ChainId.MAINNET, '0x0bc529c00C6401aEF6D220BE8C6Ea1667F6Ad93e', 18, 'YFI', 'YFI')
Const ZERO
ZERO: JSBI = JSBI.BigInt(0)
Const ZERO_PERCENT
ZERO_PERCENT: Percent = new Percent('0')
Const acceptListUpdate
acceptListUpdate: ActionCreatorWithOptionalPayload<string, string> = createAction<string>('lists/acceptListUpdate')
Const activeTabStyle
activeTabStyle: string = `${tabStyle} text-high-emphesis font-bold bg-dark-900`
Const addList
addList: ActionCreatorWithOptionalPayload<string, string> = createAction<string>('lists/addList')
Const addMulticallListeners
add
MulticallListeners: ActionCreatorWithOptionalPayload<{ calls: Call[]; chainId: number; options: ListenerOptions }, string> = createAction<{ chainId: number; calls: Call[]; options: ListenerOptions }>('multicall/addMulticallListeners')
Const addPopup
add
Popup: ActionCreatorWithOptionalPayload<{ content: PopupContent; key?: string; removeAfterMs?: number | null }, string> = createAction<{key?: stringremoveAfterMs?: number | nullcontent: PopupContent}>('application/addPopup')
Const addSerializedPair
add
SerializedPair: ActionCreatorWithOptionalPayload<{ serializedPair: SerializedPair }, string> = createAction<{serializedPair: SerializedPair}>('user/addSerializedPair')
Const addSerializedToken
add
SerializedToken: ActionCreatorWithOptionalPayload<{ serializedToken: SerializedToken }, string> = createAction<{serializedToken: SerializedToken}>('user/addSerializedToken')
Const addTransaction
addTransaction: ActionCreatorWithOptionalPayload<{ approval?: { spender: string; tokenAddress: string }; archer?: { deadline: number; ethTip: string; nonce: number; rawTransaction: string }; chainId: ChainId; claim?: { recipient: string }; from: string; hash: string; openmev?: { deadline: number; signedTx: string }; summary?: string }, string> = createAction<{chainId: ChainIdhash: stringfrom: stringapproval?: { tokenAddress: string; spender: string }claim?: { recipient: string }summary?: stringarcher?: {rawTransaction: stringdeadline: numbernonce: numberethTip: string}openmev?: {signedTx: stringdeadline: number}}>('transactions/addTransaction')
Const bentoBoxQuery
bentoBoxQuery: DocumentNode = gql`query bentoBoxQuery($id: String! = "0xf5bce5077908a1b7370b9ae04adc565ebd643966"$block: Block_height$where: BentoBox_filter) {bentoBoxes(first: 1, block: $block, where: $where) {idtotalUserstotalTokenstotalKashiPairstokens(first: 1000) {idnamesymboldecimalstotalSupplyBasetotalSupplyElastic}}}`
Const bentoStrategiesQuery
bentoStrategiesQuery: DocumentNode = gql`query bentoStrategies($first: Int = 1000, $firstHarvests: Int = 2, $block: Block_height, $where: Strategy_filter) {strategies(first: $first, block: $block, where: $where) {token {iddecimalsstrategyTargetPercentage}balancetotalProfitharvests(first: $firstHarvests, orderBy: timestamp, orderDirection: desc) {idprofittokenElastictimestampblock}timestampblock}}${bentoTokenFieldsQuery}`
Const bentoTokenFieldsQuery
bentoTokenFieldsQuery: DocumentNode = gql`fragment bentoTokenFields on Token {id# bentoBoxnamesymboldecimalstotalSupplyElastictotalSupplyBaseblocktimestamp}`
Const bentoTokensQuery
bentoTokensQuery: DocumentNode = gql`query bentoTokens($first: Int = 1000, $block: Block_height, $where: Token_filter) {tokens(first: $first, skip: $skip, block: $block, where: $where) {...bentoTokenFields}}${bentoTokenFieldsQuery}`
Const bentoUserTokensQuery
bentoUserTokensQuery: DocumentNode = gql`query bentoUserTokens($user: String!, $skip: Int = 0, $first: Int = 1000, $block: Block_height) {userTokens(skip: $skip, first: $first, block: $block, where: { share_gt: 0, user: $user }) {token {...bentoTokenFields}share}}${bentoTokenFieldsQuery}`
Const binance
binance: BscConnector = new BscConnector({ supportedChainIds: [56] })
Const blockFieldsQuery
blockFieldsQuery: DocumentNode = gql`fragment blockFields on Block {idnumbertimestamp}`
Const blockQuery
blockQuery: DocumentNode = gql`query blockQuery($where: Block_filter) {blocks(first: 1, orderBy: timestamp, orderDirection: desc, where: $where) {...blockFields}}${blockFieldsQuery}`
Const blocksQuery
blocksQuery: DocumentNode = gql`query blocksQuery($first: Int! = 1000, $skip: Int! = 0, $start: Int!, $end: Int!) {blocks(first: $firstskip: $skiporderBy: numberorderDirection: descwhere: { timestamp_gt: $start, timestamp_lt: $end }) {...blockFields}}${blockFieldsQuery}`
Const bundleFields
bundleFields: DocumentNode = gql`fragment bundleFields on Bundle {idethPrice}`
Const buttonStyle
buttonStyle: "flex justify-center items-center w-full h-14 rounded font-bold md:font-medium md:text-lg mt-5 text-sm focus:outline-none focus:ring" = "flex justify-center items-center w-full h-14 rounded font-bold md:font-medium md:text-lg mt-5 text-sm focus:outline-none focus:ring"
Const buttonStyleConnectWallet
buttonStyleConnectWallet: string = `${buttonStyle} text-high-emphesis bg-cyan-blue hover:bg-opacity-90`
Const buttonStyleDisabled
buttonStyleDisabled: string = `${buttonStyle} text-secondary bg-dark-700`
Const buttonStyleEnabled
buttonStyleEnabled: string = `${buttonStyle} text-high-emphesis bg-gradient-to-r from-pink-red to-light-brown hover:opacity-90`
Const buttonStyleInsufficientFunds
buttonStyleInsufficientFunds: string = `${buttonStyleEnabled} opacity-60`
Const checkedTransaction
checkedTransaction: ActionCreatorWithOptionalPayload<{ blockNumber: number; chainId: ChainId; hash: string }, string> = createAction<{chainId: ChainIdhash: stringblockNumber: number}>('transactions/checkedTransaction')
Const clearAllTransactions
clearAllTransactions: ActionCreatorWithOptionalPayload<{ chainId: ChainId }, string> = createAction<{ chainId: ChainId }>('transactions/clearAllTransactions')
Const dayDataFieldsQuery
dayDataFieldsQuery: DocumentNode = gql`fragment dayDataFields on DayData {iddatevolumeETHvolumeUSDuntrackedVolumeliquidityETHliquidityUSDtxCount}`
Const dayDatasQuery
dayDatasQuery: DocumentNode = gql`query dayDatasQuery($first: Int! = 1000, $date: Int! = 0, $where: DayData_filter) {dayDatas(first: $first, orderBy: date, orderDirection: desc, where: $where) {...dayDataFields}}${dayDataFieldsQuery}`
Const defaultBaseColor
defaultBaseColor: "#21262b" = "#21262b"
Const defaultClassName
defaultClassName: "w-0 p-0 text-2xl bg-transparent" = "w-0 p-0 text-2xl bg-transparent"
Const defaultHighlightColor
defaultHighlightColor: "#2b2f3e" = "#2b2f3e"
Const disableList
disableList: ActionCreatorWithOptionalPayload<string, string> = createAction<string>('lists/disableList')
Const enableList
enableList: ActionCreatorWithOptionalPayload<string, string> = createAction<string>('lists/enableList')
Const errorFetchingMulticallResults
error
FetchingMulticallResults: ActionCreatorWithOptionalPayload<{ calls: Call[]; chainId: number; fetchingBlockNumber: number }, string> = createAction<{chainId: numbercalls: Call[]fetchingBlockNumber: number}>('multicall/errorFetchingMulticallResults')
Const ethPriceQuery
ethPriceQuery: DocumentNode = gql`query ethPriceQuery($id: Int! = 1, $block: Block_height) {bundles(id: $id, block: $block) {...bundleFields}}${bundleFields}`
Const ethPriceTimeTravelQuery
ethPriceTimeTravelQuery: DocumentNode = gql`query ethPriceTimeTravelQuery($id: Int! = 1, $block: Block_height!) {bundles(id: $id, block: $block) {...bundleFields}}${bundleFields}`
Const factoryQuery
factoryQuery: DocumentNode = gql`query factoryQuery($id: String! = "0xc0aee478e3658e2610c5f7a4a2e1777ce9e4f2ac", $block: Block_height) {factory(id: $id, block: $block) {idvolumeUSDliquidityUSD}}`
Const fetchingMulticallResults
fetching
MulticallResults: ActionCreatorWithOptionalPayload<{ calls: Call[]; chainId: number; fetchingBlockNumber: number }, string> = createAction<{ chainId: number; calls: Call[]; fetchingBlockNumber: number }>('multicall/fetchingMulticallResults')
Const finalizeTransaction
finalize
Transaction: ActionCreatorWithOptionalPayload<{ chainId: ChainId; hash: string; receipt: SerializableTransactionReceipt }, string> = createAction<{chainId: ChainIdhash: stringreceipt: SerializableTransactionReceipt}>('transactions/finalizeTransaction')
Const fortmatic
fortmatic
: FortmaticConnector = new FortmaticConnector({apiKey: process.env.NEXT_PUBLIC_FORTMATIC_API_KEY ?? '',chainId: 1,})
Const images
images: { image: string; url: string }[] = [{image: `url('/images/miso/banner-gene.png')`,url: 'https://miso.sushi.com/auctions/0xA017E4Cf380c5FDc372463f3330853500b4B3Cb9',},{image: `url('/images/miso/banner-xdefi.jpg')`,url: 'https://miso.sushi.com/auctions/0xE7E8A485945339079ec5Ae72917369FE6661f15E',},]
Const inactiveTabStyle
inactiveTabStyle: string = `${tabStyle} text-secondary`
Const injected
injected
: InjectedConnector = new InjectedConnector({supportedChainIds: [1, // mainnet3, // ropsten4, // rinkeby5, // goreli42, // kovan250, // fantom4002, // fantom testnet137, // matic80001, // matic testnet100, // xdai56, // binance smart chain97, // binance smart chain testnet1287, // moonbase43114, // avalanche43113, // fuji128, // heco256, // heco testnet1666600000, // harmony1666700000, // harmony testnet66, // okex testnet65, // okex testnet42161, // arbitrum42220, // celo11297108109, // palm1285, // moonriver122, // fuse40, // telos],})
Const inputRegex
inputRegex: RegExp = RegExp(`^\\d*$`)
Const isClient
isClient: boolean = typeof window === 'object'
Const kashiPairFieldsQuery
kashiPairFieldsQuery: DocumentNode = gql`fragment kashiPairFields on KashiPair {id# bentoBoxtypemasterContractownerfeeTonamesymboloracleasset {...bentoTokenFields}collateral {...bentoTokenFields}exchangeRatetotalAssetElastictotalAssetBasetotalCollateralSharetotalBorrowElastictotalBorrowBaseinterestPerSecondutilizationfeesEarnedFractiontotalFeesEarnedFractionlastAccruedsupplyAPRborrowAPR# transactions# usersblocktimestamp}${bentoTokenFieldsQuery}`
Const kashiPairsQuery
kashiPairsQuery: DocumentNode = gql`query kashiPairs($skip: Int = 0$first: Int = 1000$where: KashiPair_filter$block: Block_height$orderBy: KashiPair_orderBy = "utilization"$orderDirection: OrderDirection! = "desc") {kashiPairs(skip: $skipfirst: $firstwhere: $whereblock: $blockorderBy: $orderByorderDirection: $orderDirection) {...kashiPairFields}}${kashiPairFieldsQuery}`
Const kashiUserPairsQuery
kashiUserPairsQuery: DocumentNode = gql`query kashiUserPairs($user: String!, $skip: Int = 0, $first: Int = 1000, $block: Block_height) {userKashiPairs(skip: $skip, first: $first, block: $block, where: { user: $user }) {assetFractioncollateralShareborrowPartpair {...kashiPairFields}}}${kashiPairFieldsQuery}`
Const liquidityPositionsQuery
liquidityPositionsQuery: DocumentNode = gql`query liquidityPositionSubsetQuery($first: Int! = 1000, $where: LiquidityPosition_filter) {liquidityPositions(first: $first, where: $where) {idliquidityTokenBalanceuser {id}pair {id}}}`
Const listCache
list
Cache: WeakMap<TokenList, TokenAddressMap> | null = typeof WeakMap !== 'undefined' ? new WeakMap<TokenList, TokenAddressMap>() : null
Const masterChefV1PairAddressesQuery
masterChefV1PairAddressesQuery: DocumentNode = gql`query masterChefV1PairAddresses($first: Int! = 1000$skip: Int! = 0$orderBy: String! = "id"$orderDirection: String! = "desc") {pools(first: $first, skip: $skip, orderBy: $orderBy, orderDirection: $orderDirection) {idallocPointaccSushiPerSharepair {id}}}`
Const masterChefV1SushiPerBlockQuery
masterChefV1SushiPerBlockQuery: DocumentNode = gql`query masterChefV1SushiPerBlock($id: String! = "0xc2edad668740f1aa35e4d8f227fb8e17dca888cd") {masterChef(id: $id) {idsushiPerBlock}}`
Const masterChefV1TotalAllocPointQuery
masterChefV1TotalAllocPointQuery: DocumentNode = gql`query masterChefV1TotalAllocPoint($id: String! = "0xc2edad668740f1aa35e4d8f227fb8e17dca888cd") {masterChef(id: $id) {idtotalAllocPoint}}`
Const masterChefV2PairAddressesQuery
masterChefV2PairAddressesQuery: DocumentNode = gql`query masterChefV2PairAddresses($first: Int! = 1000$skip: Int! = 0$orderBy: String! = "id"$orderDirection: String! = "desc") {pools(first: $first, skip: $skip, orderBy: $orderBy, orderDirection: $orderDirection) {idallocPointaccSushiPerSharepair {id}}}`
Const miniChefPairAddressesQuery
miniChefPairAddressesQuery: DocumentNode = gql`query miniChefPairAddresses($first: Int! = 1000$skip: Int! = 0$orderBy: String! = "id"$orderDirection: String! = "desc") {pools(first: $first, skip: $skip, orderBy: $orderBy, orderDirection: $orderDirection) {idallocPointaccSushiPerSharepair {id}}}`
Const miniChefPoolsQuery
miniChefPoolsQuery: DocumentNode = gql`query miniChefPoolsQuery($first: Int! = 1000$skip: Int! = 0$orderBy: String! = "id"$orderDirection: String! = "desc") {pools(first: $first, skip: $skip, orderBy: $orderBy, orderDirection: $orderDirection) {idpairrewarder {idrewardTokenrewardPerSecond}allocPointlastRewardTimeaccSushiPerShareslpBalanceuserCountminiChef {idsushiPerSecondtotalAllocPoint}}}`
Const network
network
: NetworkConnector = new NetworkConnector({defaultChainId: 1,urls: RPC,})
Let networkLibrary
networkLibrary: Web3Provider | undefined
Const pairCountQuery
pairCountQuery: DocumentNode = gql`query pairCountQuery {uniswapFactories {pairCount}}`
Const pairDayDatasQuery
pairDayDatasQuery: DocumentNode = gql`query pairDayDatasQuery($first: Int = 1000, $date: Int = 0, $pairs: [Bytes]!) {pairDayDatas(first: $first, orderBy: date, orderDirection: desc, where: { pair_in: $pairs, date_gt: $date }) {datepair {id}token0 {derivedETH}token1 {derivedETH}reserveUSDvolumeToken0volumeToken1volumeUSDtxCount}}`
Const pairFieldsQuery
pairFieldsQuery: DocumentNode = gql`fragment pairFields on Pair {idreserveUSDreserveETHvolumeUSDuntrackedVolumeUSDtrackedReserveETHtoken0 {...PairToken}token1 {...PairToken}reserve0reserve1token0Pricetoken1PricetotalSupplytxCounttimestamp}fragment PairToken on Token {idnamesymboltotalSupplyderivedETH}`
Const pairIdsQuery
pairIdsQuery: DocumentNode = gql`query pairIdsQuery {pairs(first: 1000) {id}}`
Const pairQuery
pairQuery: DocumentNode = gql`query pairQuery($id: String!) {pair(id: $id) {...pairFields}}${pairFieldsQuery}`
Const pairTimeTravelQuery
pairTimeTravelQuery: DocumentNode = gql`query pairTimeTravelQuery($id: String!, $block: Block_height!) {pair(id: $id, block: $block) {...pairFields}}${pairFieldsQuery}`
Const pairsQuery
pairsQuery: DocumentNode = gql`query pair($skip: Int = 0$first: Int = 1000$where: Pair_filter$block: Block_height$orderBy: Pair_orderBy = "trackedReserveETH"$orderDirection: OrderDirection = "desc") {pairs(skip: $skipfirst: $firstorderBy: $orderByorderDirection: $orderDirectionblock: $blockwhere: $where) {...pairFields}}${pairFieldsQuery}`
Const pairsTimeTravelQuery
pairsTimeTravelQuery: DocumentNode = gql`query pairsTimeTravelQuery($first: Int! = 1000, $pairAddresses: [Bytes]!, $block: Block_height!) {pairs(first: $firstblock: $blockorderBy: trackedReserveETHorderDirection: descwhere: { id_in: $pairAddresses }) {idreserveUSDtrackedReserveETHvolumeUSDuntrackedVolumeUSDtxCount}}`
Const persistedReducer
persisted
Reducer: Reducer<EmptyObject & Object & PersistPartial, AnyAction> = persistReducer(persistConfig, reducer)
Const persistor
persistor: Persistor = persistStore(store)
Const poolsQuery
poolsQuery: DocumentNode = gql`query poolsQuery($first: Int! = 1000, $skip: Int! = 0, $orderBy: String! = "id", $orderDirection: String! = "desc") {pools(first: $first, skip: $skip, orderBy: $orderBy, orderDirection: $orderDirection) {idpairallocPointlastRewardBlockaccSushiPerSharebalanceuserCountowner {idsushiPerBlocktotalAllocPoint}}}`
Const poolsV2Query
poolsV2Query: DocumentNode = gql`query poolsV2Query($first: Int! = 1000$skip: Int! = 0$orderBy: String! = "id"$orderDirection: String! = "desc") {pools(first: $first, skip: $skip, orderBy: $orderBy, orderDirection: $orderDirection) {idpairallocPointslpBalancemasterChef {idtotalAllocPoint}rewarder {idrewardTokenrewardPerSecond}}}`
Const portis
portis: PortisConnector = new PortisConnector({dAppId: process.env.NEXT_PUBLIC_PORTIS_ID ?? '',networks: [1],})
Const priceFormatter
priceFormatter: NumberFormat = new Intl.NumberFormat('en-US', {style: 'currency',currency: 'USD',minimumFractionDigits: 2,})
Const rejectVersionUpdate
rejectVersionUpdate: ActionCreatorWithOptionalPayload<Version, string> = createAction<Version>('lists/rejectVersionUpdate')
Const removeList
removeList: ActionCreatorWithOptionalPayload<string, string> = createAction<string>('lists/removeList')
Const removeMulticallListeners
remove
MulticallListeners: ActionCreatorWithOptionalPayload<{ calls: Call[]; chainId: number; options: ListenerOptions }, string> = createAction<{ chainId: number; calls: Call[]; options: ListenerOptions }>('multicall/removeMulticallListeners')
Const removePopup
removePopup: ActionCreatorWithOptionalPayload<{ key: string }, string> = createAction<{ key: string }>('application/removePopup')
Const removeSerializedPair
removeSerializedPair: ActionCreatorWithOptionalPayload<{ chainId: number; tokenAAddress: string; tokenBAddress: string }, string> = createAction<{chainId: numbertokenAAddress: stringtokenBAddress: string}>('user/removeSerializedPair')
Const removeSerializedToken
removeSerializedToken: ActionCreatorWithOptionalPayload<{ address: string; chainId: number }, string> = createAction<{chainId: numberaddress: string}>('user/removeSerializedToken')
Const replaceCreateState
replace
CreateState: ActionCreatorWithOptionalPayload<{ assetId?: string; collateralId?: string; field: Field; typedValue: string }, string> = createAction<{field: FieldtypedValue: stringcollateralId?: stringassetId?: string}>('create/replaceCreateState')
Const replaceLimitOrderState
replace
LimitOrderState: ActionCreatorWithOptionalPayload<{ fromBentoBalance?: boolean; independentField: Field; inputCurrencyId?: string; limitPrice: string; orderExpiration?: { label: string; value: string }; outputCurrencyId?: string; recipient: string | null; typedValue: string }, string> = createAction<{independentField: FieldtypedValue: stringinputCurrencyId?: stringoutputCurrencyId?: stringrecipient: string | nullfromBentoBalance?: booleanlimitPrice: stringorderExpiration?: { value: string; label: string }}>('limit-order/replaceLimitOrderState')
Const replaceSwapState
replace
SwapState: ActionCreatorWithOptionalPayload<{ field: Field; inputCurrencyId?: string; outputCurrencyId?: string; recipient: string | null; typedValue: string }, string> = createAction<{field: FieldtypedValue: stringinputCurrencyId?: stringoutputCurrencyId?: stringrecipient: string | null}>('swap/replaceSwapState')
Const resetMintState
resetMintState: ActionCreatorWithoutPayload<string> = createAction<void>('mint/resetMintState')
Const resetZapState
resetZapState: ActionCreatorWithoutPayload<string> = createAction<void>('zap/resetZapState')
Const rotate
rotate: any = keyframes`from {transform: rotate(0deg);}to {transform: rotate(360deg);}`
Const safeMultisigConnector
safeMultisigConnector: SafeAppConnector = new SafeAppConnector()
Const selectCurrency
select
Currency: ActionCreatorWithOptionalPayload<{ currencyId: string; field: Field }, string> = createAction<{field: FieldcurrencyId: string}>('swap/selectCurrency')
Const sessionId
sessionId: string = nanoid()
Const setFromBentoBalance
setFromBentoBalance: ActionCreatorWithOptionalPayload<boolean, string> = createAction<boolean>('limit-order/setFromBentoBalance')
Const setKashiApprovalPending
setKashiApprovalPending: ActionCreatorWithOptionalPayload<string, string> = createAction<string>('application/setKashiApprovalPending')
Const setLimitOrderApprovalPending
setLimitOrderApprovalPending: ActionCreatorWithOptionalPayload<string, string> = createAction<string>('limit-order/setLimitOrderApprovalPending')
Const setLimitPrice
setLimitPrice: ActionCreatorWithOptionalPayload<string, string> = createAction<string | null>('limit-order/setLimitPrice')
Const setOpenModal
set
OpenModal: ActionCreatorWithOptionalPayload<ApplicationModal, string> = createAction<ApplicationModal | null>('application/setOpenModal')
Const setOrderExpiration
setOrderExpiration: ActionCreatorWithOptionalPayload<{ label: string; value: string }, string> = createAction<{value: stringlabel: string} | null>('limit-order/setOrderExpiration')
Const setRecipient
setRecipient: ActionCreatorWithOptionalPayload<{ recipient: string | null }, string> = createAction<{ recipient: string | null }>('swap/setRecipient')
Const setStrategy
set
Strategy: ActionCreatorWithOptionalPayload<Strategy, string> = createAction<Strategy>('inari/setStrategy')
Const setValues
setValues: ActionCreatorWithOptionalPayload<{ inputValue: string; outputValue: string }, string> = createAction<{ inputValue: string; outputValue: string }>('inari/setInputValue')
Const setZapIn
setZapIn: ActionCreatorWithOptionalPayload<boolean, string> = createAction<boolean>('inari/setZapIn')
Const skeletonKeyframes
skeletonKeyframes: any = keyframes`0% {background-position: -200px 0;}100% {background-position: calc(200px + 100%) 0;}`
Const switchCurrencies
switchCurrencies: ActionCreatorWithoutPayload<string> = createAction<void>('swap/switchCurrencies')
Const tabStyle
tabStyle: "flex justify-center items-center h-full w-full rounded-lg cursor-pointer text-sm md:text-base" = "flex justify-center items-center h-full w-full rounded-lg cursor-pointer text-sm md:text-base"
Const toggleURLWarning
toggleURLWarning: ActionCreatorWithoutPayload<string> = createAction<void>('app/toggleURLWarning')
Const tokenDayDatasQuery
tokenDayDatasQuery: DocumentNode = gql`query tokenDayDatasQuery($first: Int! = 1000, $tokens: [Bytes]!, $date: Int! = 0) {tokenDayDatas(first: $first, orderBy: date, orderDirection: desc, where: { token_in: $tokens, date_gt: $date }) {iddatetoken {id}volumeUSDliquidityUSDpriceUSDtxCount}}`
Const tokenFieldsQuery
tokenFieldsQuery: DocumentNode = gql`fragment tokenFields on Token {idsymbolnamedecimalstotalSupplyvolumevolumeUSDuntrackedVolumeUSDtxCountliquidityderivedETH}`
Const tokenIdsQuery
tokenIdsQuery: DocumentNode = gql`query tokenIdsQuery {tokens(first: 1000) {id}}`
Const tokenListValidator
tokenListValidator: ValidateFunction = new Ajv({ allErrors: true }).compile(schema)
Const tokenPairsQuery
tokenPairsQuery: DocumentNode = gql`query tokenPairsQuery($id: String!) {pairs0: pairs(first: 1000, orderBy: reserveUSD, orderDirection: desc, where: { token0: $id }) {...pairFields}pairs1: pairs(first: 1000, orderBy: reserveUSD, orderDirection: desc, where: { token1: $id }) {...pairFields}}${pairFieldsQuery}`
Const tokenPriceQuery
tokenPriceQuery: DocumentNode = gql`query tokenPriceQuery($id: String!) {token(id: $id) {idderivedETH}}`
Const tokenQuery
tokenQuery: DocumentNode = gql`query tokenQuery($id: String!, $block: Block_height) {token(id: $id, block: $block) {...tokenFields}}${tokenFieldsQuery}`
Const tokenSubsetQuery
tokenSubsetQuery: DocumentNode = gql`query tokenSubsetQuery($first: Int! = 1000$tokenAddresses: [Bytes]!$orderBy: String! = "id"$orderDirection: String! = "desc") {tokens(first: $first, orderBy: $orderBy, orderDirection: $orderDirection, where: { id_in: $tokenAddresses }) {...tokenFields}}${tokenFieldsQuery}`
Const tokenTimeTravelQuery
tokenTimeTravelQuery: DocumentNode = gql`query tokenTimeTravelQuery($id: String!, $block: Block_height!) {token(id: $id, block: $block) {...tokenFields}}${tokenFieldsQuery}`
Const tokensQuery
tokensQuery: DocumentNode = gql`query tokensQuery($first: Int! = 1000, $block: Block_height) {tokens(first: $first, orderBy: volumeUSD, orderDirection: desc, block: $block) {...tokenFieldsdayData(first: 7, skip: 0, orderBy: date, order: asc) {idpriceUSD}# hourData(first: 168, skip: 0, orderBy: date, order: asc) {# priceUSD# }}}${tokenFieldsQuery}`
Const tokensTimeTravelQuery
tokensTimeTravelQuery: DocumentNode = gql`query tokensTimeTravelQuery($first: Int! = 1000, $block: Block_height!) {tokens(first: $first, block: $block) {...tokenFields}}${tokenFieldsQuery}`
Const tools
tools: { description: string; href: string; id: number; name: string }[] = [{id: 1,name: 'MEOWSHI',description: 'Redonominate xSUSHI into MEOWSHI',href: '/tools/meowshi',},{id: 2,name: 'INARI',description: 'Deposit SUSHI in various strategies & platforms in one click!',href: '/inari',},]
Const torus
torus: TorusConnector = new TorusConnector({chainId: 1,})
Const transactionsQuery
transactionsQuery: DocumentNode = gql`query transactionsQuery($pairAddresses: [Bytes]!) {swaps(orderBy: timestamp, orderDirection: desc, where: { pair_in: $pairAddresses }) {idtimestamppair {token0 {symbol}token1 {symbol}}senderamount0Inamount0Outamount1Inamount1OutamountUSDto}mints(orderBy: timestamp, orderDirection: desc, where: { pair_in: $pairAddresses }) {idtimestamppair {token0 {symbol}token1 {symbol}}senderamount0amount1amountUSDto}burns(orderBy: timestamp, orderDirection: desc, where: { pair_in: $pairAddresses }) {idtimestamppair {token0 {symbol}token1 {symbol}}senderamount0amount1amountUSDto}}`
Const typeInput
type
Input: ActionCreatorWithOptionalPayload<{ field: Field; noLiquidity: boolean; typedValue: string }, string> = createAction<{ field: Field; typedValue: string; noLiquidity: boolean }>('zap/typeInputZap')
Const uniswapUserQuery
uniswapUserQuery: DocumentNode = gql`query uniswapUserQuery($id: String!) {uniswapUser: user(id: $id) {idliquidityPositions {idliquidityTokenBalance# historicalSnapshots {# id# reserve0# reserve1# block# timestamp# liquidityTokenBalance# liquidityTokenTotalSupply# }}}}`
Const unknown
unknown: "https://raw.githubusercontent.com/sushiswap/icons/master/token/unknown.png" = "https://raw.githubusercontent.com/sushiswap/icons/master/token/unknown.png"
Const updateBlockNumber
updateBlockNumber: ActionCreatorWithOptionalPayload<{ blockNumber: number; chainId: number }, string> = createAction<{chainId: numberblockNumber: number}>('application/updateBlockNumber')
Const updateMatchesDarkMode
updateMatchesDarkMode: ActionCreatorWithOptionalPayload<{ matchesDarkMode: boolean }, string> = createAction<{ matchesDarkMode: boolean }>('user/updateMatchesDarkMode')
Const updateMulticallResults
updateMulticallResults: ActionCreatorWithOptionalPayload<{ blockNumber: number; chainId: number; results: {} }, string> = createAction<{chainId: numberblockNumber: numberresults: {[callKey: string]: string | null}}>('multicall/updateMulticallResults')
Const updateUserArcherETHTip
updateUserArcherETHTip: ActionCreatorWithOptionalPayload<{ userArcherETHTip: string }, string> = createAction<{userArcherETHTip: string}>('user/updateUserArcherETHTip')
Const updateUserArcherGasEstimate
updateUserArcherGasEstimate: ActionCreatorWithOptionalPayload<{ userArcherGasEstimate: string }, string> = createAction<{userArcherGasEstimate: string}>('user/updateUserArcherGasEstimate')
Const updateUserArcherGasPrice
updateUserArcherGasPrice: ActionCreatorWithOptionalPayload<{ userArcherGasPrice: string }, string> = createAction<{userArcherGasPrice: string}>('user/updateUserArcherGasPrice')
Const updateUserArcherTipManualOverride
updateUserArcherTipManualOverride: ActionCreatorWithOptionalPayload<{ userArcherTipManualOverride: boolean }, string> = createAction<{userArcherTipManualOverride: boolean}>('user/updateUserArcherTipManualOverride')
Const updateUserArcherUseRelay
updateUserArcherUseRelay: ActionCreatorWithOptionalPayload<{ userArcherUseRelay: boolean }, string> = createAction<{userArcherUseRelay: boolean}>('user/updateUserArcherUseRelay')
Const updateUserDarkMode
updateUserDarkMode: ActionCreatorWithOptionalPayload<{ userDarkMode: boolean }, string> = createAction<{ userDarkMode: boolean }>('user/updateUserDarkMode')
Const updateUserDeadline
updateUserDeadline: ActionCreatorWithOptionalPayload<{ userDeadline: number }, string> = createAction<{ userDeadline: number }>('user/updateUserDeadline')
Const updateUserExpertMode
updateUserExpertMode: ActionCreatorWithOptionalPayload<{ userExpertMode: boolean }, string> = createAction<{ userExpertMode: boolean }>('user/updateUserExpertMode')
Const updateUserOpenMevUseRelay
updateUserOpenMevUseRelay: ActionCreatorWithOptionalPayload<{ userOpenMevUseRelay: boolean }, string> = createAction<{userOpenMevUseRelay: boolean}>('user/updateUserOpenMevUseRelay')
Const updateUserSingleHopOnly
updateUserSingleHopOnly: ActionCreatorWithOptionalPayload<{ userSingleHopOnly: boolean }, string> = createAction<{userSingleHopOnly: boolean}>('user/updateUserSingleHopOnly')
Const updateUserSlippageTolerance
updateUserSlippageTolerance: ActionCreatorWithOptionalPayload<{ userSlippageTolerance: number | "auto" }, string> = createAction<{userSlippageTolerance: number | 'auto'}>('user/updateUserSlippageTolerance')
Const updateVersion
updateVersion: ActionCreatorWithoutPayload<string> = createAction<void>('global/updateVersion')
Const useAppSelector
use
AppSelector: TypedUseSelectorHook<AppState> = useSelector
Const userIdsQuery
userIdsQuery: DocumentNode = gql`query userIdsQuery($first: Int! = 1000, $skip: Int! = 0) {users(first: $first, skip: $skip) {id}}`
Const viewUrl
viewUrl: string = `${LAMBDA_URL}/orders/view`
Const walletconnect
walletconnect: WalletConnectConnector = new WalletConnectConnector({rpc: RPC,bridge: 'https://bridge.walletconnect.org',qrcode: true,})
Const walletlink
walletlink: WalletLinkConnector = new WalletLinkConnector({url: RPC[ChainId.MAINNET],appName: 'SushiSwap',appLogoUrl: 'https://raw.githubusercontent.com/sushiswap/art/master/sushi/logo-256x256.png',})
Const xDai
xDai: "https://raw.githubusercontent.com/sushiswap/icons/master/network/xdai.jpg" = "https://raw.githubusercontent.com/sushiswap/icons/master/network/xdai.jpg"
Const xDaiLogo
xDaiLogo: "https://raw.githubusercontent.com/sushiswap/assets/master/blockchains/xdai/assets/0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d/logo.png" = "https://raw.githubusercontent.com/sushiswap/assets/master/blockchains/xdai/assets/0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d/logo.png"
BLOCKS_IN_A_YEAR
London / Berlin / Muir Glacier Block Speed AVERAGE: 13.2 MEDIAN: 13.21475904 Source: https://openmev.page.link/block-delta
We round up due to an observed increase in block prop. from Muir Glacier <> Berlin vs. Berlin <> London Muir-Glacier <> Berlin sees ~13.15